X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e3f3880bc2b13b0ff90a60f676959989da732dd..6f26925422c2de7938509657eb981d6f752a6249:/src/common/xti.cpp diff --git a/src/common/xti.cpp b/src/common/xti.cpp index 79f840c258..a924d13fda 100644 --- a/src/common/xti.cpp +++ b/src/common/xti.cpp @@ -21,13 +21,13 @@ #ifndef WX_PRECOMP #include "wx/object.h" + #include "wx/list.h" #include "wx/hash.h" #endif #include "wx/xti.h" #include "wx/xml/xml.h" #include "wx/tokenzr.h" -#include "wx/list.h" #include #include "wx/beforestd.h" @@ -114,13 +114,13 @@ const wxChar * wxEnumData::GetEnumMemberNameByIndex( int idx ) const template<> void wxStringReadValue(const wxString &s , bool &data ) { int intdata ; - wxSscanf(s, _T("%d"), &intdata ) ; + wxSscanf(s, wxT("%d"), &intdata ) ; data = (bool)intdata ; } template<> void wxStringWriteValue(wxString &s , const bool &data ) { - s = wxString::Format(_T("%d"), data ) ; + s = wxString::Format(wxT("%d"), data ) ; } // char @@ -128,13 +128,13 @@ template<> void wxStringWriteValue(wxString &s , const bool &data ) template<> void wxStringReadValue(const wxString &s , char &data ) { int intdata ; - wxSscanf(s, _T("%d"), &intdata ) ; + wxSscanf(s, wxT("%d"), &intdata ) ; data = char(intdata) ; } template<> void wxStringWriteValue(wxString &s , const char &data ) { - s = wxString::Format(_T("%d"), data ) ; + s = wxString::Format(wxT("%d"), data ) ; } // unsigned char @@ -142,85 +142,85 @@ template<> void wxStringWriteValue(wxString &s , const char &data ) template<> void wxStringReadValue(const wxString &s , unsigned char &data ) { int intdata ; - wxSscanf(s, _T("%d"), &intdata ) ; + wxSscanf(s, wxT("%d"), &intdata ) ; data = (unsigned char)(intdata) ; } template<> void wxStringWriteValue(wxString &s , const unsigned char &data ) { - s = wxString::Format(_T("%d"), data ) ; + s = wxString::Format(wxT("%d"), data ) ; } // int template<> void wxStringReadValue(const wxString &s , int &data ) { - wxSscanf(s, _T("%d"), &data ) ; + wxSscanf(s, wxT("%d"), &data ) ; } template<> void wxStringWriteValue(wxString &s , const int &data ) { - s = wxString::Format(_T("%d"), data ) ; + s = wxString::Format(wxT("%d"), data ) ; } // unsigned int template<> void wxStringReadValue(const wxString &s , unsigned int &data ) { - wxSscanf(s, _T("%d"), &data ) ; + wxSscanf(s, wxT("%d"), &data ) ; } template<> void wxStringWriteValue(wxString &s , const unsigned int &data ) { - s = wxString::Format(_T("%d"), data ) ; + s = wxString::Format(wxT("%d"), data ) ; } // long template<> void wxStringReadValue(const wxString &s , long &data ) { - wxSscanf(s, _T("%ld"), &data ) ; + wxSscanf(s, wxT("%ld"), &data ) ; } template<> void wxStringWriteValue(wxString &s , const long &data ) { - s = wxString::Format(_T("%ld"), data ) ; + s = wxString::Format(wxT("%ld"), data ) ; } // unsigned long template<> void wxStringReadValue(const wxString &s , unsigned long &data ) { - wxSscanf(s, _T("%ld"), &data ) ; + wxSscanf(s, wxT("%ld"), &data ) ; } template<> void wxStringWriteValue(wxString &s , const unsigned long &data ) { - s = wxString::Format(_T("%ld"), data ) ; + s = wxString::Format(wxT("%ld"), data ) ; } // float template<> void wxStringReadValue(const wxString &s , float &data ) { - wxSscanf(s, _T("%f"), &data ) ; + wxSscanf(s, wxT("%f"), &data ) ; } template<> void wxStringWriteValue(wxString &s , const float &data ) { - s = wxString::Format(_T("%f"), data ) ; + s = wxString::Format(wxT("%f"), data ) ; } // double template<> void wxStringReadValue(const wxString &s , double &data ) { - wxSscanf(s, _T("%lf"), &data ) ; + wxSscanf(s, wxT("%lf"), &data ) ; } template<> void wxStringWriteValue(wxString &s , const double &data ) { - s = wxString::Format(_T("%lf"), data ) ; + s = wxString::Format(wxT("%lf"), data ) ; } // wxString