]> git.saurik.com Git - wxWidgets.git/commitdiff
Warning fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Sun, 21 May 2006 22:36:33 +0000 (22:36 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Sun, 21 May 2006 22:36:33 +0000 (22:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/combog.cpp

index 84d31db480957a28335f4897242673786b375808..5559bff3c81f1e0d7b1707acae63df27f34231fd 100644 (file)
@@ -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 )