diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-04-13 19:38:01 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-04-13 20:17:23 -0400 |
| commit | 6c42d6bce9c0a7073528554ebe8bab9e8c2fda38 (patch) | |
| tree | 3414e5072c23e063e743d57e8b0e6b42c742914d /src/common/file_util.cpp | |
| parent | dc210b6498086fdb9ad8b3aaa51677e49f0c1e86 (diff) | |
file_util: const qualify IOFile's Tell and GetSize functions
Diffstat (limited to 'src/common/file_util.cpp')
| -rw-r--r-- | src/common/file_util.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 578c673b98..7d96d04d99 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() |
