X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e00b90802a3856692d41a84622dac20ff0c7496..0571b62b887f2d9b02084e027e01c1d4881a4713:/src/common/variant.cpp diff --git a/src/common/variant.cpp b/src/common/variant.cpp index 3f9c2cca69..b1c8838981 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -1343,7 +1343,7 @@ bool wxVariantDataArrayString::Write(wxString& str) const for ( size_t n = 0; n < count; n++ ) { if ( n ) - str += _T(';'); + str += wxT(';'); str += m_value[n]; } @@ -1363,7 +1363,7 @@ bool wxVariantDataArrayString::Read(wxSTD istream& WXUNUSED(str)) bool wxVariantDataArrayString::Read(wxString& str) { - wxStringTokenizer tk(str, _T(";")); + wxStringTokenizer tk(str, wxT(";")); while ( tk.HasMoreTokens() ) { m_value.Add(tk.GetNextToken()); @@ -1382,7 +1382,7 @@ wxVariant::wxVariant(const wxArrayString& val, const wxString& name) // Strings bool wxVariant::operator==(const wxArrayString& WXUNUSED(value)) const { - wxFAIL_MSG( _T("TODO") ); + wxFAIL_MSG( wxT("TODO") ); return false; } @@ -1455,7 +1455,7 @@ protected: bool wxVariantDataLongLong::Eq(wxVariantData& data) const { - wxASSERT_MSG( (data.GetType() == wxS("longlong")), + wxASSERT_MSG( (data.GetType() == wxS("longlong")), "wxVariantDataLongLong::Eq: argument mismatch" ); wxVariantDataLongLong& otherData = (wxVariantDataLongLong&) data; @@ -1475,8 +1475,12 @@ bool wxVariantDataLongLong::Write(wxSTD ostream& str) const bool wxVariantDataLongLong::Write(wxString& str) const { - str.Printf(wxS("%lld"), m_value); +#ifdef wxLongLong_t + str.Printf(wxS("%lld"), m_value.GetValue()); return true; +#else + return false; +#endif } #if wxUSE_STD_IOSTREAM @@ -1612,7 +1616,7 @@ protected: bool wxVariantDataULongLong::Eq(wxVariantData& data) const { - wxASSERT_MSG( (data.GetType() == wxS("ulonglong")), + wxASSERT_MSG( (data.GetType() == wxS("ulonglong")), "wxVariantDataULongLong::Eq: argument mismatch" ); wxVariantDataULongLong& otherData = (wxVariantDataULongLong&) data; @@ -1632,8 +1636,12 @@ bool wxVariantDataULongLong::Write(wxSTD ostream& str) const bool wxVariantDataULongLong::Write(wxString& str) const { - str.Printf(wxS("%llu"), m_value); +#ifdef wxLongLong_t + str.Printf(wxS("%llu"), m_value.GetValue()); return true; +#else + return false; +#endif } #if wxUSE_STD_IOSTREAM