Merge pull request #5891 from lioncash/const

File: Make GetSize() a const member function
This commit is contained in:
Leo Lam 2017-08-07 00:46:49 +08:00 committed by GitHub
commit 1833354ef9
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ void IOFile::SetHandle(std::FILE* file)
m_file = file; m_file = file;
} }
u64 IOFile::GetSize() u64 IOFile::GetSize() const
{ {
if (IsOpen()) if (IsOpen())
return File::GetSize(m_file); return File::GetSize(m_file);

View File

@ -74,7 +74,7 @@ public:
bool Seek(s64 off, int origin); bool Seek(s64 off, int origin);
u64 Tell() const; u64 Tell() const;
u64 GetSize(); u64 GetSize() const;
bool Resize(u64 size); bool Resize(u64 size);
bool Flush(); bool Flush();