make File::operator bool(void) redirect to isOpen()
This commit is contained in:
1 parent
d53387455c
commit
2451ae0cb2
1 file changed
+1
-5
@@ -297,11 +297,7 @@ void File::_close(void)
|
||||
|
||||
File::operator bool (void)
|
||||
{
|
||||
bool ret = false;
|
||||
this->DoNotCallFromOutsideClass_LockFilesystem();
|
||||
ret = this->_isOpen();
|
||||
this->DoNotCallFromOutsideClass_UnlockFilesystem();
|
||||
return ret;
|
||||
return isOpen();
|
||||
}
|
||||
bool File::isOpen(void)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user