X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba8546912daa12cea8076e08f1694a03e520dfe2..ef1717a963dfb76bac26b9f4277ae590b3c0a2e6:/src/common/txtstrm.cpp?ds=inline diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 93bc7ad912..61260824e2 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -9,10 +9,6 @@ // 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" @@ -132,7 +128,7 @@ wxUint32 wxTextInputStream::Read32(int base) if(!m_input) return 0; wxString word = ReadWord(); - if(word.IsEmpty()) + if(word.empty()) return 0; return wxStrtoul(word.c_str(), 0, base); } @@ -153,7 +149,7 @@ wxInt32 wxTextInputStream::Read32S(int base) if(!m_input) return 0; wxString word = ReadWord(); - if(word.IsEmpty()) + if(word.empty()) return 0; return wxStrtol(word.c_str(), 0, base); } @@ -172,7 +168,7 @@ double wxTextInputStream::ReadDouble() { if(!m_input) return 0; wxString word = ReadWord(); - if(word.IsEmpty()) + if(word.empty()) return 0; return wxStrtod(word.c_str(), 0); } @@ -352,7 +348,7 @@ void wxTextOutputStream::Write32(wxUint32 i) void wxTextOutputStream::Write16(wxUint16 i) { wxString str; - str.Printf(wxT("%u"), i); + str.Printf(wxT("%u"), (unsigned)i); WriteString(str); } @@ -360,7 +356,7 @@ void wxTextOutputStream::Write16(wxUint16 i) void wxTextOutputStream::Write8(wxUint8 i) { wxString str; - str.Printf(wxT("%u"), i); + str.Printf(wxT("%u"), (unsigned)i); WriteString(str); } @@ -406,7 +402,7 @@ void wxTextOutputStream::WriteString(const wxString& string) } out << c; - } + } // We must not write the trailing NULL here #if wxUSE_UNICODE