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 )