mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
Merge pull request #4636 from lioncash/file
IOFile: Correct explicit operator bool semantics
This commit is contained in:
commit
91044178ef
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ public:
|
|||
bool IsOpen() const { return nullptr != m_file; }
|
||||
// m_good is set to false when a read, write or other function fails
|
||||
bool IsGood() const { return m_good; }
|
||||
explicit operator bool() const { return IsGood(); }
|
||||
explicit operator bool() const { return IsGood() && IsOpen(); }
|
||||
std::FILE* ReleaseHandle();
|
||||
|
||||
std::FILE* GetHandle() { return m_file; }
|
||||
|
|
Loading…
Add table
Reference in a new issue