diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-04-15 00:38:21 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-04-15 02:04:03 -0400 |
| commit | b0613bb1c857dd8f0e015217c2c74593132a630b (patch) | |
| tree | e3ed580f1146aa2faed4b4ebbcba6246e657427c /Source/Core/Common/FileUtil.h | |
| parent | 7506c386cf316c68a62e4c4b1417c251cc8279d4 (diff) | |
General: Apply the const specifier where applicable
Diffstat (limited to 'Source/Core/Common/FileUtil.h')
| -rw-r--r-- | Source/Core/Common/FileUtil.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/FileUtil.h b/Source/Core/Common/FileUtil.h index 6548a95fcb..4ff158462d 100644 --- a/Source/Core/Common/FileUtil.h +++ b/Source/Core/Common/FileUtil.h @@ -203,10 +203,10 @@ public: return WriteArray(reinterpret_cast<const char*>(data), length); } - bool IsOpen() { return nullptr != m_file; } + bool IsOpen() const { return nullptr != m_file; } // m_good is set to false when a read, write or other function fails - bool IsGood() { return m_good; } + bool IsGood() const { return m_good; } operator void*() { return m_good ? m_file : nullptr; } std::FILE* ReleaseHandle(); @@ -216,7 +216,7 @@ public: void SetHandle(std::FILE* file); bool Seek(s64 off, int origin); - u64 Tell(); + u64 Tell() const; u64 GetSize(); bool Resize(u64 size); bool Flush(); |
