]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stream.cpp
minor cleanup of Unix GetInfo(): assert if invalid parameters are passed; don't use...
[wxWidgets.git] / src / common / stream.cpp
index 657e6675d4e7c22358aefd0bb9a792b9925242d0..8d8a42c870ffe4c9b7daf21fc100e05b26aacb1a 100644 (file)
@@ -1214,7 +1214,7 @@ template <typename T>
 wxStreamBuffer *
 CreateBufferIfNeeded(T& stream, wxStreamBuffer *buffer, size_t bufsize = 1024)
 {
-    return buffer ? buffer : new wxStreamBuffer(stream, bufsize);
+    return buffer ? buffer : new wxStreamBuffer(bufsize, stream);
 }
 
 } // anonymous namespace