General: Apply the const specifier where applicable

This commit is contained in:
Lioncash
2015-04-15 00:38:21 -04:00
parent 7506c386cf
commit b0613bb1c8
39 changed files with 75 additions and 75 deletions

View File

@ -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();