Made wxStreamBase::IsOk() virtual;

Overrride in file streams to test foe base class and
    for correctly opened files.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-10-19 12:30:59 +00:00
parent 522d32e508
commit d65fd4e93f
3 changed files with 6 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ public:
// error testing
wxStreamError GetLastError() const { return m_lasterror; }
bool IsOk() const { return GetLastError() == wxSTREAM_NO_ERROR; }
virtual bool IsOk() const { return GetLastError() == wxSTREAM_NO_ERROR; }
bool operator!() const { return !IsOk(); }
// reset the stream state