]> git.saurik.com Git - wxWidgets.git/commitdiff
don't convert false to a pointer
authorPaul Cornett <paulcor@bullseye.com>
Wed, 19 Apr 2006 03:07:42 +0000 (03:07 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 19 Apr 2006 03:07:42 +0000 (03:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/menu.cpp

index a5bf7019b13b6d2412bd49e648b123a2084c7426..931f25c3fd544a16f00454e77c44100e048c3522 100644 (file)
@@ -819,7 +819,7 @@ wxMenu *wxMenuBar::Replace(size_t pos, wxMenu *menu, const wxString& title)
 {
     wxMenu *menuOld = wxMenuBarBase::Replace(pos, menu, title);
     if ( !menuOld )
 {
     wxMenu *menuOld = wxMenuBarBase::Replace(pos, menu, title);
     if ( !menuOld )
-        return false;
+        return NULL;
 
     m_titles[pos] = title;
 
 
     m_titles[pos] = title;