Return reference on string.

This commit is contained in:
vng 2015-03-13 14:41:42 +03:00 committed by Alex Zolotarev
parent 7415fd3a9b
commit baeac25abc
3 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ void FileWriter::WritePaddingByEnd(size_t factor) { WritePadding(Size(), factor)
void FileWriter::WritePaddingByPos(size_t factor) { WritePadding(Pos(), factor); }
string FileWriter::GetName() const
string const & FileWriter::GetName() const
{
return m_pFileData->GetName();
}

View file

@ -46,7 +46,7 @@ public:
static void DeleteFileX(string const & fName);
string GetName() const;
string const & GetName() const;
private:
typedef my::FileData fdata_t;

View file

@ -40,7 +40,7 @@ public:
void Flush();
void Truncate(uint64_t sz);
string GetName() const { return m_FileName; }
string const & GetName() const { return m_FileName; }
private: