From: Stefan Csomor Date: Tue, 3 May 2005 05:34:53 +0000 (+0000) Subject: must be static of course, otherwise items just get appended for every menu-build X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a71dec776e22b9bdaa73027d67ec5c0c7d0b21df must be static of course, otherwise items just get appended for every menu-build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/menu.cpp b/src/mac/carbon/menu.cpp index 490a71deec..b6e9dd9d3c 100644 --- a/src/mac/carbon/menu.cpp +++ b/src/mac/carbon/menu.cpp @@ -653,7 +653,7 @@ void wxMenuBar::MacInstallMenuBar() MacInsertMenu( appleMenu , 0 ) ; // clean-up the help menu before adding new items - MenuHandle mh = NULL ; + static MenuHandle mh = NULL ; if ( mh != NULL ) {