// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "txtstrm.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
if(!m_input) return 0;
wxString word = ReadWord();
- if(word.IsEmpty())
+ if(word.empty())
return 0;
return wxStrtoul(word.c_str(), 0, base);
}
if(!m_input) return 0;
wxString word = ReadWord();
- if(word.IsEmpty())
+ if(word.empty())
return 0;
return wxStrtol(word.c_str(), 0, base);
}
{
if(!m_input) return 0;
wxString word = ReadWord();
- if(word.IsEmpty())
+ if(word.empty())
return 0;
return wxStrtod(word.c_str(), 0);
}
void wxTextOutputStream::Write16(wxUint16 i)
{
wxString str;
- str.Printf(wxT("%u"), i);
+ str.Printf(wxT("%u"), (unsigned)i);
WriteString(str);
}
void wxTextOutputStream::Write8(wxUint8 i)
{
wxString str;
- str.Printf(wxT("%u"), i);
+ str.Printf(wxT("%u"), (unsigned)i);
WriteString(str);
}
}
out << c;
- }
+ }
// We must not write the trailing NULL here
#if wxUSE_UNICODE