_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
/*
wxOnAssert() is used by the debugging macros defined below. Different
/*
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
All of them are implemented in src/common/appcmn.cpp and unconditionally
call wxTheAssertHandler so the caller must check that it is non-NULL
#if wxUSE_UNICODE
// these overloads are the ones typically used by debugging macros: we have to
#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
//
// and finally, we can't use const wx(char)* msg = NULL, because that would
// be ambiguous
//
if ( m_toString )
(*m_toString)( data, result );
else
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
}
// convert a string into a wxAny holding the corresponding data in this type
if( m_fromString )
(*m_fromString)( data, result );
else
if( m_fromString )
(*m_fromString)( data, result );
else
- wxLogError( wxGetTranslation(_T("String conversions not supported")) );
+ wxLogError( wxGetTranslation(wxT("String conversions not supported")) );
if( m_toLong )
(*m_toLong)( data, result );
else
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
}
// convert a long into a wxAny holding the corresponding data in this type
if( m_fromLong )
(*m_fromLong)( data, result );
else
if( m_fromLong )
(*m_fromLong)( data, result );
else
- wxLogError( wxGetTranslation(_T("Long Conversions not supported")) );
+ wxLogError( wxGetTranslation(wxT("Long Conversions not supported")) );
template<> void wxStringReadValue(const wxString &s, bool &data )
{
int intdata;
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 )
{
data = (bool)(intdata != 0);
}
template<> void wxStringWriteValue(wxString &s, const bool &data )
{
- s = wxString::Format(_T("%d"), data );
+ s = wxString::Format(wxT("%d"), data );
template<> void wxStringReadValue(const wxString &s, char &data )
{
int intdata;
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 )
{
data = char(intdata);
}
template<> void wxStringWriteValue(wxString &s, const char &data )
{
- s = wxString::Format(_T("%d"), data );
+ s = wxString::Format(wxT("%d"), data );
template<> void wxStringReadValue(const wxString &s, unsigned char &data )
{
int intdata;
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 )
{
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 )
{
}
// 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 )
{
}
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 )
{
}
// 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 )
{
}
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 )
{
}
// 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 )
{
}
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 )
{
}
// 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 )
{
}
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 )
{
}
#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 )
{
}
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 )
{
}
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 )
{
}
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 )
{
}
#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 )
{
}
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 )
{
}
// 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 )
{
}
template<> void wxStringWriteValue(wxString &s, const double &data )
{
- s = wxString::Format(_T("%lf"), data );
+ s = wxString::Format(wxT("%lf"), data );
- 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") );
if ( window->GetWindowStyle() & wxMAXIMIZE_BOX )
menu.Append(wxID_MAXIMIZE_FRAME , _("Ma&ximize"));
menu.AppendSeparator();
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 )
{
if ( window->GetWindowStyle() & wxMAXIMIZE_BOX )
{