X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d493b66a90fd34344997d184655aeac7182df3fb..eb6b14dc71402c42e0474779bfcd6e878383071e:/demos/life/reader.cpp diff --git a/demos/life/reader.cpp b/demos/life/reader.cpp index 4d348ef402..ed6b875a3f 100644 --- a/demos/life/reader.cpp +++ b/demos/life/reader.cpp @@ -4,7 +4,6 @@ // Author: Guillermo Rodriguez Garcia, // Modified by: // Created: Jan/2000 -// RCS-ID: $Id$ // Copyright: (c) 2000, Guillermo Rodriguez Garcia // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -13,10 +12,6 @@ // headers, declarations, constants // ========================================================================== -#ifdef __GNUG__ - #pragma implementation "reader.h" -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -47,7 +42,7 @@ LifeReader::LifeReader(wxInputStream& is) { wxBufferedInputStream buff_is(is); wxTextInputStream text_is(buff_is); - wxString line, rest; + wxString line, rest; // check stream m_ok = is.IsOk(); @@ -58,11 +53,11 @@ LifeReader::LifeReader(wxInputStream& is) LIFE_CHECKVAL(_("Error reading signature. Not a Life pattern?")); // read description - m_description = wxT(""); + m_description = wxEmptyString; 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(); } @@ -79,7 +74,7 @@ LifeReader::LifeReader(wxInputStream& is) { line = ( text_is.ReadLine() ).Trim(); - if (!line.IsEmpty()) + if (!line.empty()) { if (line.StartsWith(wxT("#P "), &rest)) m_shape.Add(rest);