X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d598bae33dff0e48eebd569aa3d75e95e8d6947..22e3c5bd85233ba23fbb62cd421a7dd173adfa73:/src/os2/spinctrl.cpp?ds=sidebyside diff --git a/src/os2/spinctrl.cpp b/src/os2/spinctrl.cpp index 7a05daa635..b74642b7ca 100644 --- a/src/os2/spinctrl.cpp +++ b/src/os2/spinctrl.cpp @@ -357,7 +357,7 @@ void wxSpinCtrl::OnChar ( wxString sVal = wxGetWindowText(m_hWndBuddy); InitCommandEvent(vEvent); - vEvent.SetString((char*)sVal.c_str()); + vEvent.SetString(sVal); vEvent.SetInt(GetValue()); if (GetEventHandler()->ProcessEvent(vEvent)) return; @@ -434,7 +434,7 @@ bool wxSpinCtrl::ProcessTextCommand( wxString sVal = wxGetWindowText(m_hWndBuddy); - vEvent.SetString((char*)sVal.c_str()); + vEvent.SetString(sVal); vEvent.SetInt(GetValue()); return (GetEventHandler()->ProcessEvent(vEvent)); } @@ -486,7 +486,7 @@ void wxSpinCtrl::SetValue( { long lVal; - lVal = atol(rsText.c_str()); + lVal = atol((char*)rsText.c_str()); wxSpinButton::SetValue(lVal); } // end of wxSpinCtrl::SetValue