]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/life/reader.cpp
Fix aggregate has a partly bracketed Unmatched initializer warnings - which means...
[wxWidgets.git] / demos / life / reader.cpp
index 8bb48ed375a8d9e2d516d5a8d3fd6df97500c8e4..26002d19048c62b5d58dc11283e065326a773c1b 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
@@ -62,7 +62,7 @@ LifeReader::LifeReader(wxInputStream& is)
     line = text_is.ReadLine();
     while (buff_is.IsOk() && line.StartsWith(wxT("#D"), &rest))
     {
-        m_description += rest.Trim(FALSE);
+        m_description += rest.Trim(false);
         m_description += wxT("\n");
         line = text_is.ReadLine();
     }