]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stream.h
Remove SetPageTitle and GetPageTitle and make GetCurrentTitle actually return the...
[wxWidgets.git] / include / wx / stream.h
index c2cb838f922a6ae689cfe900d8fce8bf0fc42edf..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;
@@ -421,13 +421,13 @@ public:
         InitWithStream(stream, mode);
     }
 
-    wxStreamBuffer(wxInputStream& stream, size_t bufsize)
+    wxStreamBuffer(size_t bufsize, wxInputStream& stream)
     {
         InitWithStream(stream, read);
         SetBufferIO(bufsize);
     }
 
-    wxStreamBuffer(wxOutputStream& stream, size_t bufsize)
+    wxStreamBuffer(size_t bufsize, wxOutputStream& stream)
     {
         InitWithStream(stream, write);
         SetBufferIO(bufsize);