From: Vadim Zeitlin Date: Mon, 1 Oct 2012 09:55:50 +0000 (+0000) Subject: No changes, just remove some unneeded variables initializations. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bdc43642fb84b6cc765844c1720144077133a4b5 No changes, just remove some unneeded variables initializations. Closes #14716, #14717. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/slider.cpp b/src/os2/slider.cpp index b15c673c1e..2bf845aaad 100644 --- a/src/os2/slider.cpp +++ b/src/os2/slider.cpp @@ -881,7 +881,6 @@ int wxSlider::GetValue() const ) ); double dPixelToRange = (double)(nPixelRange - m_nThumbLength)/(double)(m_nRangeMax - m_nRangeMin); - int nNewPos = 0; int nPixelPos = SHORT1FROMMR(::WinSendMsg( GetHwnd() ,SLM_QUERYSLIDERINFO ,MPFROM2SHORT( SMA_SLIDERARMPOSITION @@ -890,7 +889,7 @@ int wxSlider::GetValue() const ,(MPARAM)0 ) ); - nNewPos = (int)(nPixelPos/dPixelToRange); + int nNewPos = (int)(nPixelPos/dPixelToRange); if (nNewPos > (m_nRangeMax - m_nRangeMin)/2) nNewPos++; return nNewPos; diff --git a/src/os2/spinbutt.cpp b/src/os2/spinbutt.cpp index 19ea7af582..05af314aa8 100644 --- a/src/os2/spinbutt.cpp +++ b/src/os2/spinbutt.cpp @@ -85,12 +85,10 @@ bool wxSpinButton::Create( if (nY < 0 ) nY = 0; - long lSstyle = 0L; - - lSstyle = WS_VISIBLE | - WS_TABSTOP | - SPBS_MASTER | // We use only single field spin buttons - SPBS_NUMERICONLY; // We default to numeric data + long lSstyle = WS_VISIBLE | + WS_TABSTOP | + SPBS_MASTER | // We use only single field spin buttons + SPBS_NUMERICONLY; // We default to numeric data if (m_windowStyle & wxCLIP_SIBLINGS ) lSstyle |= WS_CLIPSIBLINGS;