]> git.saurik.com Git - wxWidgets.git/commitdiff
No changes, just remove some unneeded variables initializations.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Oct 2012 09:55:50 +0000 (09:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Oct 2012 09:55:50 +0000 (09:55 +0000)
Closes #14716, #14717.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/slider.cpp
src/os2/spinbutt.cpp

index b15c673c1e14c0ea57c2e67bbbac23586b237b5f..2bf845aaad6120827053c793fa53870c29d4ccf3 100644 (file)
@@ -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;
index 19ea7af58212bfbdfacbd96c12d517ed3a15587c..05af314aa86a4ad33277d90543837633637e4b0a 100644 (file)
@@ -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;