X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..4fa87bd948a00e9cc2a31a577663c344632f521c:/demos/life/reader.cpp?ds=sidebyside diff --git a/demos/life/reader.cpp b/demos/life/reader.cpp index 8bb48ed375..26002d1904 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 @@ -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(); }