X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61a028dc4af537da90fd52935a75afc9056ecd09..ee5aa9d44fa75e88bce9981d7d02dea9f6d5f3c4:/src/os2/spinctrl.cpp diff --git a/src/os2/spinctrl.cpp b/src/os2/spinctrl.cpp index a6048ce89c..2aeef5f3d7 100644 --- a/src/os2/spinctrl.cpp +++ b/src/os2/spinctrl.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: os2/spinctrl.cpp +// Name: src/os2/spinctrl.cpp // Purpose: wxSpinCtrl class implementation for OS/2 // Author: David Webster // Modified by: @@ -122,8 +122,6 @@ bool wxSpinCtrl::Create( wxWindow* pParent, int nInitial, const wxString& rsName ) { - SWP vSwp; - if (vId == wxID_ANY) m_windowId = NewControlId(); else @@ -134,7 +132,7 @@ bool wxSpinCtrl::Create( wxWindow* pParent, SetParent(pParent); m_windowStyle = lStyle; - int lSstyle = 0L; + int lSstyle = 0L; lSstyle = WS_VISIBLE | WS_TABSTOP | @@ -175,11 +173,7 @@ bool wxSpinCtrl::Create( wxWindow* pParent, SetFont(*wxSMALL_FONT); SetXComp(0); SetYComp(0); - SetSize( rPos.x - ,rPos.y - ,rSize.x - ,rSize.y - ); + SetSize( rPos.x, rPos.y, rSize.x, rSize.y ); SetRange(nMin, nMax); SetValue(nInitial); @@ -462,7 +456,7 @@ void wxSpinCtrl::SetValue( { long lVal; - lVal = atol((char*)rsText.c_str()); + lVal = atol(rsText.c_str()); wxSpinButton::SetValue(lVal); } // end of wxSpinCtrl::SetValue