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
This commit is contained in:
@@ -881,7 +881,6 @@ int wxSlider::GetValue() const
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
double dPixelToRange = (double)(nPixelRange - m_nThumbLength)/(double)(m_nRangeMax - m_nRangeMin);
|
double dPixelToRange = (double)(nPixelRange - m_nThumbLength)/(double)(m_nRangeMax - m_nRangeMin);
|
||||||
int nNewPos = 0;
|
|
||||||
int nPixelPos = SHORT1FROMMR(::WinSendMsg( GetHwnd()
|
int nPixelPos = SHORT1FROMMR(::WinSendMsg( GetHwnd()
|
||||||
,SLM_QUERYSLIDERINFO
|
,SLM_QUERYSLIDERINFO
|
||||||
,MPFROM2SHORT( SMA_SLIDERARMPOSITION
|
,MPFROM2SHORT( SMA_SLIDERARMPOSITION
|
||||||
@@ -890,7 +889,7 @@ int wxSlider::GetValue() const
|
|||||||
,(MPARAM)0
|
,(MPARAM)0
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
nNewPos = (int)(nPixelPos/dPixelToRange);
|
int nNewPos = (int)(nPixelPos/dPixelToRange);
|
||||||
if (nNewPos > (m_nRangeMax - m_nRangeMin)/2)
|
if (nNewPos > (m_nRangeMax - m_nRangeMin)/2)
|
||||||
nNewPos++;
|
nNewPos++;
|
||||||
return nNewPos;
|
return nNewPos;
|
||||||
|
@@ -85,12 +85,10 @@ bool wxSpinButton::Create(
|
|||||||
if (nY < 0 )
|
if (nY < 0 )
|
||||||
nY = 0;
|
nY = 0;
|
||||||
|
|
||||||
long lSstyle = 0L;
|
long lSstyle = WS_VISIBLE |
|
||||||
|
WS_TABSTOP |
|
||||||
lSstyle = WS_VISIBLE |
|
SPBS_MASTER | // We use only single field spin buttons
|
||||||
WS_TABSTOP |
|
SPBS_NUMERICONLY; // We default to numeric data
|
||||||
SPBS_MASTER | // We use only single field spin buttons
|
|
||||||
SPBS_NUMERICONLY; // We default to numeric data
|
|
||||||
|
|
||||||
if (m_windowStyle & wxCLIP_SIBLINGS )
|
if (m_windowStyle & wxCLIP_SIBLINGS )
|
||||||
lSstyle |= WS_CLIPSIBLINGS;
|
lSstyle |= WS_CLIPSIBLINGS;
|
||||||
|
Reference in New Issue
Block a user