// headers, declarations, constants
// ==========================================================================
-#ifdef __GNUG__
- #pragma implementation "reader.h"
-#endif
-
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
LifeReader::LifeReader(wxInputStream& is)
{
- wxBufferedInputStream buff_is = wxBufferedInputStream(is);
- wxTextInputStream text_is = wxTextInputStream(buff_is);
- wxString line, rest;
+ wxBufferedInputStream buff_is(is);
+ wxTextInputStream text_is(buff_is);
+ wxString line, rest;
// check stream
m_ok = is.IsOk();
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();
}
{
line = ( text_is.ReadLine() ).Trim();
- if (!line.IsEmpty())
+ if (!line.empty())
{
if (line.StartsWith(wxT("#P "), &rest))
m_shape.Add(rest);