Globally replace _T() with wxT().
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -437,7 +437,7 @@ void wxSpinCtrlGenericBase::SyncSpinToText()
|
||||
|
||||
void wxSpinCtrlGenericBase::SetValue(const wxString& text)
|
||||
{
|
||||
wxCHECK_RET( m_textCtrl, _T("invalid call to wxSpinCtrl::SetValue") );
|
||||
wxCHECK_RET( m_textCtrl, wxT("invalid call to wxSpinCtrl::SetValue") );
|
||||
|
||||
double val;
|
||||
if ( text.ToDouble(&val) && InRange(val) )
|
||||
@@ -453,7 +453,7 @@ void wxSpinCtrlGenericBase::SetValue(const wxString& text)
|
||||
|
||||
bool wxSpinCtrlGenericBase::DoSetValue(double val)
|
||||
{
|
||||
wxCHECK_MSG( m_textCtrl, false, _T("invalid call to wxSpinCtrl::SetValue") );
|
||||
wxCHECK_MSG( m_textCtrl, false, wxT("invalid call to wxSpinCtrl::SetValue") );
|
||||
|
||||
if (!InRange(val))
|
||||
return false;
|
||||
@@ -514,7 +514,7 @@ void wxSpinCtrlGenericBase::SetSnapToTicks(bool snap_to_ticks)
|
||||
|
||||
void wxSpinCtrlGenericBase::SetSelection(long from, long to)
|
||||
{
|
||||
wxCHECK_RET( m_textCtrl, _T("invalid call to wxSpinCtrl::SetSelection") );
|
||||
wxCHECK_RET( m_textCtrl, wxT("invalid call to wxSpinCtrl::SetSelection") );
|
||||
|
||||
m_textCtrl->SetSelection(from, to);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user