X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba8546912daa12cea8076e08f1694a03e520dfe2..6b91d1134092fb05310c3e72393cc2720c552e9e:/src/common/txtstrm.cpp diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 93bc7ad912..ede8a1c5ea 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -132,7 +132,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 +153,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 +172,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); } @@ -406,7 +406,7 @@ void wxTextOutputStream::WriteString(const wxString& string) } out << c; - } + } // We must not write the trailing NULL here #if wxUSE_UNICODE