]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/life/reader.cpp
fixes to better remember the last focused child; also restore it using SetFocus(...
[wxWidgets.git] / 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