X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..1f0acb435592470b421b80df854fbbb08cd2853f:/include/wx/stream.h diff --git a/include/wx/stream.h b/include/wx/stream.h index c2cb838f92..ed07ce61a8 100644 --- a/include/wx/stream.h +++ b/include/wx/stream.h @@ -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);