]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use deprecated wxMenuItem ctor and don't use an unnecessary #ifdef
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 25 Aug 2008 00:31:32 +0000 (00:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 25 Aug 2008 00:31:32 +0000 (00:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/auibar.cpp

index 009f435fc2977bcb42e34ac0cd22f83a816f6a84..9232f4a8676caf2dd485d5c7904c4699427ff2b6 100644 (file)
@@ -737,11 +737,7 @@ int wxAuiDefaultToolBarArt::ShowDropDown(wxWindow* wnd,
             if (text.empty())
                 text = wxT(" ");
 
-            #ifdef __WXMAC__
             wxMenuItem* m =  new wxMenuItem(&menuPopup, item.id, text, item.short_help);
-            #else
-            wxMenuItem* m =  new wxMenuItem(&menuPopup, item.id, text, item.short_help, false);
-            #endif
 
             m->SetBitmap(item.bitmap);
             menuPopup.Append(m);