From: Włodzimierz Skiba Date: Sun, 21 May 2006 22:36:33 +0000 (+0000) Subject: Warning fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/613351172aaff8571b2795f7798fee9d1810db85?ds=inline Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/combog.cpp b/src/generic/combog.cpp index 84d31db480..5559bff3c8 100644 --- a/src/generic/combog.cpp +++ b/src/generic/combog.cpp @@ -288,11 +288,7 @@ void wxGenericComboControl::OnMouseEvent( wxMouseEvent& event ) if ( PreprocessMouseEvent(event,handlerFlags) ) return; -#ifdef __WXMSW__ - const bool ctrlIsButton = true; -#else - const bool ctrlIsButton = false; -#endif + const bool ctrlIsButton = wxPlatformIs(wxMSW); if ( ctrlIsButton && (m_windowStyle & (wxCC_SPECIAL_DCLICK|wxCB_READONLY)) == wxCB_READONLY )