]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stream.h
cleaning up the runloop source properly (was causing crashes in embedded situations...
[wxWidgets.git] / include / wx / stream.h
index ca3b84eb57ebee606bc297bfab7f9cfb4199697a..652c40481f17a5080742209af9c68e09d5947d03 100644 (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
@@ -266,7 +266,8 @@ public:
     wxCountingOutputStream();
 
     wxFileOffset GetLength() const;
-    bool Ok() const { return true; }
+    bool Ok() const { return IsOk(); }
+    bool IsOk() const { return true; }
 
 protected:
     virtual size_t OnSysWrite(const void *buffer, size_t size);