diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 578c673b98bb7f7afa7ca5a1fccc9a7a81d0509e..7d96d04d9971fc5b0629c88dcfee7fb2928756f6 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -930,12 +930,12 @@ bool IOFile::Close() return m_good; } -u64 IOFile::GetSize() +u64 IOFile::GetSize() const { if (IsOpen()) return FileUtil::GetSize(m_file); - else - return 0; + + return 0; } bool IOFile::Seek(s64 off, int origin) @@ -946,12 +946,12 @@ bool IOFile::Seek(s64 off, int origin) return m_good; } -u64 IOFile::Tell() +u64 IOFile::Tell() const { if (IsOpen()) return ftello(m_file); - else - return -1; + + return -1; } bool IOFile::Flush() diff --git a/src/common/file_util.h b/src/common/file_util.h index 8f72fb4e21ec97969f43339fcc10f4101ae3381d..d520130cef05ba7036d2f75b8892f9395c940946 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h @@ -247,8 +247,8 @@ public: explicit operator bool() const { return IsGood(); } bool Seek(s64 off, int origin); - u64 Tell(); - u64 GetSize(); + u64 Tell() const; + u64 GetSize() const; bool Resize(u64 size); bool Flush();