X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ac8bd7b5347c31a0f4ff53aa0a3fcaa54ecb5ca..20125017a4bccd0920ee21e178950b0de0e4d63b:/demos/life/reader.cpp diff --git a/demos/life/reader.cpp b/demos/life/reader.cpp index 26002d1904..896f281bde 100644 --- a/demos/life/reader.cpp +++ b/demos/life/reader.cpp @@ -13,10 +13,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 +43,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,7 +54,7 @@ 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)) { @@ -79,7 +75,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);