From: Vadim Zeitlin Date: Wed, 29 Nov 2006 00:29:13 +0000 (+0000) Subject: fixed unused variable warning X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f85f5ddf8855b67313f8d909d3544b84ca0980ec fixed unused variable warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/combocmn.cpp b/src/common/combocmn.cpp index ba69cd7188..77c67f137e 100644 --- a/src/common/combocmn.cpp +++ b/src/common/combocmn.cpp @@ -1004,9 +1004,9 @@ void wxComboCtrlBase::PositionTextCtrl( int textCtrlXAdjust, int textCtrlYAdjust return; wxSize sz = GetClientSize(); - int customBorder = m_widthCustomBorder; #if !TEXTCTRL_TEXT_CENTERED + int customBorder = m_widthCustomBorder; if ( (m_text->GetWindowStyleFlag() & wxBORDER_MASK) == wxNO_BORDER ) { // Centre textctrl @@ -1033,10 +1033,10 @@ void wxComboCtrlBase::PositionTextCtrl( int textCtrlXAdjust, int textCtrlYAdjust } } else -#else +#else // TEXTCTRL_TEXT_CENTERED wxUnusedVar(textCtrlXAdjust); wxUnusedVar(textCtrlYAdjust); -#endif +#endif // !TEXTCTRL_TEXT_CENTERED/TEXTCTRL_TEXT_CENTERED { // If it has border, have textctrl will the entire text field. m_text->SetSize( m_tcArea.x + m_widthCustomPaint,