]> git.saurik.com Git - wxWidgets.git/commitdiff
Streams were being created the wrong way (was using the copy
authorGuillermo Rodriguez Garcia <guille@iies.es>
Thu, 10 May 2001 06:24:10 +0000 (06:24 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Thu, 10 May 2001 06:24:10 +0000 (06:24 +0000)
ctor which should not be used for any stream class)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

demos/life/reader.cpp

index 8bb48ed375a8d9e2d516d5a8d3fd6df97500c8e4..4d348ef402a74d27df28a7d7997e41530a0ae59e 100644 (file)
@@ -45,8 +45,8 @@
 
 LifeReader::LifeReader(wxInputStream& is)
 {
-    wxBufferedInputStream buff_is = wxBufferedInputStream(is);
-    wxTextInputStream     text_is = wxTextInputStream(buff_is);
+    wxBufferedInputStream buff_is(is);
+    wxTextInputStream     text_is(buff_is);
     wxString              line, rest; 
 
     // check stream