use wxSTREAM_NO_ERROR instead of deprecated wxSTREAM_NOERROR (fixes compilation without WXWIN_COMPATIBILITY_2_2

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-11-04 17:16:04 +00:00
parent 405fff1bad
commit 85e5952bfe

View File

@@ -76,11 +76,11 @@ public:
// error testing // error testing
wxStreamError GetLastError() const { return m_lasterror; } wxStreamError GetLastError() const { return m_lasterror; }
bool IsOk() const { return GetLastError() == wxSTREAM_NOERROR; } bool IsOk() const { return GetLastError() == wxSTREAM_NO_ERROR; }
bool operator!() const { return !IsOk(); } bool operator!() const { return !IsOk(); }
// reset the stream state // reset the stream state
void Reset() { m_lasterror = wxSTREAM_NOERROR; } void Reset() { m_lasterror = wxSTREAM_NO_ERROR; }
// deprecated (doesn't make sense!), don't use // deprecated (doesn't make sense!), don't use
virtual size_t GetSize() const { return 0; } virtual size_t GetSize() const { return 0; }