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
This commit is contained in:
Vadim Zeitlin
2012-09-30 22:19:01 +00:00
parent 669f031b94
commit e708cadacb
2 changed files with 2 additions and 5 deletions

View File

@@ -147,9 +147,7 @@ OSStatus wxMacDrawCGImage(
CGColorRef wxMacCreateCGColor( const wxColour& col ) CGColorRef wxMacCreateCGColor( const wxColour& col )
{ {
CGColorRef retval = 0; CGColorRef retval = col.CreateCGColor();
retval = col.CreateCGColor();
wxASSERT(retval != NULL); wxASSERT(retval != NULL);
return retval; return retval;

View File

@@ -616,11 +616,10 @@ void wxMenuBar::MacInstallMenuBar()
// hide items in the apple menu that don't exist in the wx menubar // hide items in the apple menu that don't exist in the wx menubar
int menuid = 0;
wxMenuItem* appleItem = NULL; wxMenuItem* appleItem = NULL;
wxMenuItem* wxItem = NULL; wxMenuItem* wxItem = NULL;
menuid = wxApp::s_macAboutMenuItemId; int menuid = wxApp::s_macAboutMenuItemId;
appleItem = m_appleMenu->FindItem(menuid); appleItem = m_appleMenu->FindItem(menuid);
wxItem = FindItem(menuid); wxItem = FindItem(menuid);
if ( appleItem != NULL ) if ( appleItem != NULL )