]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stream.h
Implement SelectAll for OSX WebKit.
[wxWidgets.git] / include / wx / stream.h
index 9119658421f46abac4b57c6de3087b989ef94eaf..ed07ce61a86f4503539641d6b550f9cabc6f8e43 100644 (file)
@@ -64,7 +64,7 @@ public:
     bool operator!() const { return !IsOk(); }
 
     // reset the stream state
-    void Reset() { m_lasterror = wxSTREAM_NO_ERROR; }
+    void Reset(wxStreamError error = wxSTREAM_NO_ERROR) { m_lasterror = error; }
 
     // this doesn't make sense for all streams, always test its return value
     virtual size_t GetSize() const;