From: Guillermo Rodriguez Garcia Date: Thu, 10 May 2001 06:24:10 +0000 (+0000) Subject: Streams were being created the wrong way (was using the copy X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d493b66a90fd34344997d184655aeac7182df3fb?ds=sidebyside Streams were being created the wrong way (was using the copy 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 --- diff --git a/demos/life/reader.cpp b/demos/life/reader.cpp index 8bb48ed375..4d348ef402 100644 --- a/demos/life/reader.cpp +++ b/demos/life/reader.cpp @@ -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