diff options
author | Lioncash <mathew1800@gmail.com> | 2016-04-13 19:29:16 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2016-04-13 20:17:17 -0400 |
commit | a4120ca66cc6c0f3a8056c6ea247c15f63c7feff (patch) | |
tree | a0db95eee61ce8070add52e3abd55971be6458df /src/common/file_util.h | |
parent | bf9945b81bf7d41c197ac8b190cab9e1c7176733 (diff) |
file_util: Don't expose IOFile internals through the API
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r-- | src/common/file_util.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h index dd151575f2..8f72fb4e21 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h @@ -176,7 +176,6 @@ class IOFile : public NonCopyable { public: IOFile(); - explicit IOFile(std::FILE* file); IOFile(const std::string& filename, const char openmode[]); ~IOFile(); @@ -245,13 +244,7 @@ public: // m_good is set to false when a read, write or other function fails bool IsGood() const { return m_good; } - operator void*() { return m_good ? m_file : nullptr; } - - std::FILE* ReleaseHandle(); - - std::FILE* GetHandle() { return m_file; } - - void SetHandle(std::FILE* file); + explicit operator bool() const { return IsGood(); } bool Seek(s64 off, int origin); u64 Tell(); |