]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxT() instead of _T() in XTI code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Jan 2012 18:48:39 +0000 (18:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Jan 2012 18:48:39 +0000 (18:48 +0000)
_T() is deprecated and doesn't work with Solaris compiler, use wxT() instead.

Also change one occurrence of _T() inside a comment in wx/debug.h.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/debug.h
include/wx/xtitypes.h
src/common/xti.cpp
src/common/xtistrm.cpp
src/univ/themes/win32.cpp

index af091bcc7f4aeaa53087339248b8474b1cc62dca..2ee3f6dbb0b1997e1bba6228d72ee15ccd8ffcfc 100644 (file)
@@ -162,7 +162,7 @@ inline void wxDisableAsserts() { wxSetAssertHandler(NULL); }
 
 /*
     wxOnAssert() is used by the debugging macros defined below. Different
-    overloads are needed because these macros can be used with or without _T().
+    overloads are needed because these macros can be used with or without wxT().
 
     All of them are implemented in src/common/appcmn.cpp and unconditionally
     call wxTheAssertHandler so the caller must check that it is non-NULL
@@ -172,7 +172,7 @@ inline void wxDisableAsserts() { wxSetAssertHandler(NULL); }
 #if wxUSE_UNICODE
 
 // these overloads are the ones typically used by debugging macros: we have to
-// provide wxChar* msg version because it's common to use _T() in the macros
+// provide wxChar* msg version because it's common to use wxT() in the macros
 // and finally, we can't use const wx(char)* msg = NULL, because that would
 // be ambiguous
 //
index 0879897f537da277d01f8246c9a9e067701e668b..295a87656e9f79d40abf5f1a160458cb0ad1c42e 100644 (file)
@@ -355,7 +355,7 @@ public:
         if ( m_toString ) 
             (*m_toString)( data, result ); 
         else 
-            wxLogError( wxGetTranslation(_T("String conversions not supported")) ); 
+            wxLogError( wxGetTranslation(wxT("String conversions not supported")) ); 
     }
 
     // convert a string into a wxAny holding the corresponding data in this type
@@ -364,7 +364,7 @@ public:
         if( m_fromString ) 
             (*m_fromString)( data, result ); 
         else 
-            wxLogError( wxGetTranslation(_T("String conversions not supported")) ); 
+            wxLogError( wxGetTranslation(wxT("String conversions not supported")) ); 
     }
 
     // statics:
@@ -428,7 +428,7 @@ public:
         if( m_toLong ) 
             (*m_toLong)( data, result ); 
         else 
-            wxLogError( wxGetTranslation(_T("Long Conversions not supported")) ); 
+            wxLogError( wxGetTranslation(wxT("Long Conversions not supported")) ); 
     }
 
     // convert a long into a wxAny holding the corresponding data in this type
@@ -437,7 +437,7 @@ public:
         if( m_fromLong ) 
             (*m_fromLong)( data, result ); 
         else 
-            wxLogError( wxGetTranslation(_T("Long Conversions not supported")) ); 
+            wxLogError( wxGetTranslation(wxT("Long Conversions not supported")) ); 
     }
 
 private:
index f207253ad7d48941d36496959c2ed31e108a5a8a..31c2282f136d5eec0caa4ca6a3c85d36f9c2b425 100644 (file)
@@ -117,13 +117,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 != 0);
 }
 
 template<> void wxStringWriteValue(wxString &s, const bool &data )
 {
-    s = wxString::Format(_T("%d"), data );
+    s = wxString::Format(wxT("%d"), data );
 }
 
 // char
@@ -131,13 +131,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
@@ -145,106 +145,106 @@ 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 );
 }
 
 #ifdef wxLongLong_t
 template<> void wxStringReadValue(const wxString &s, wxLongLong_t &data )
 {
-    wxSscanf(s, _T("%lld"), &data );
+    wxSscanf(s, wxT("%lld"), &data );
 }
 
 template<> void wxStringWriteValue(wxString &s, const wxLongLong_t &data )
 {
-    s = wxString::Format(_T("%lld"), data );
+    s = wxString::Format(wxT("%lld"), data );
 }
 
 template<> void wxStringReadValue(const wxString &s, wxULongLong_t &data )
 {
-    wxSscanf(s, _T("%lld"), &data );
+    wxSscanf(s, wxT("%lld"), &data );
 }
 
 template<> void wxStringWriteValue(wxString &s, const wxULongLong_t &data )
 {
-    s = wxString::Format(_T("%lld"), data );
+    s = wxString::Format(wxT("%lld"), data );
 }
 #endif
 // 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
index 9f0860b933594d044ebcf9cd3234850896e78a82..de182f0ef072a72038998a5c0aa051753b3b549e 100644 (file)
@@ -289,8 +289,8 @@ void wxObjectWriter::WriteOneProperty( const wxObject *obj, const wxClassInfo* c
                         }
                         else
                         {
-                            wxLogError( _T("Streaming delegates for not already ")
-                                        _T("streamed objects not yet supported") );
+                            wxLogError( wxT("Streaming delegates for not already ")
+                                        wxT("streamed objects not yet supported") );
                         }
                     }
                 }
index 095e95d37f5cc3f62cbfa1177e34675352dd8bba..ca9e07313f797a5c878c94e658def7b763c8b814 100644 (file)
@@ -3775,7 +3775,7 @@ void wxWin32FrameInputHandler::PopupSystemMenu(wxTopLevelWindow *window) const
     if ( window->GetWindowStyle() & wxMAXIMIZE_BOX )
         menu.Append(wxID_MAXIMIZE_FRAME , _("Ma&ximize"));
     menu.AppendSeparator();
-    menu.Append(wxID_CLOSE_FRAME, _("&Close") + _T("\t") + _("Alt+") + _T("F4"));
+    menu.Append(wxID_CLOSE_FRAME, _("&Close") + wxT("\t") + _("Alt+") + wxT("F4"));
 
     if ( window->GetWindowStyle() & wxMAXIMIZE_BOX )
     {