From e708cadacbe33423392ba7c6398f36378df9597e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Sep 2012 22:19:01 +0000 Subject: [PATCH] No changes, just remove unneeded variable initialization. Closes #14712, #14713. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/graphics.cpp | 4 +--- src/osx/menu_osx.cpp | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/osx/carbon/graphics.cpp b/src/osx/carbon/graphics.cpp index a1f9947489..053481f1ca 100644 --- a/src/osx/carbon/graphics.cpp +++ b/src/osx/carbon/graphics.cpp @@ -147,9 +147,7 @@ OSStatus wxMacDrawCGImage( CGColorRef wxMacCreateCGColor( const wxColour& col ) { - CGColorRef retval = 0; - - retval = col.CreateCGColor(); + CGColorRef retval = col.CreateCGColor(); wxASSERT(retval != NULL); return retval; diff --git a/src/osx/menu_osx.cpp b/src/osx/menu_osx.cpp index 70df6ba07a..aca50de2cd 100644 --- a/src/osx/menu_osx.cpp +++ b/src/osx/menu_osx.cpp @@ -616,11 +616,10 @@ void wxMenuBar::MacInstallMenuBar() // hide items in the apple menu that don't exist in the wx menubar - int menuid = 0; wxMenuItem* appleItem = NULL; wxMenuItem* wxItem = NULL; - menuid = wxApp::s_macAboutMenuItemId; + int menuid = wxApp::s_macAboutMenuItemId; appleItem = m_appleMenu->FindItem(menuid); wxItem = FindItem(menuid); if ( appleItem != NULL ) -- 2.45.2