X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32b1391332e67af96856865ded257aacd6e1e956..ede3a6d68af66772b4f5f94208b4126bab566cc8:/src/common/menucmn.cpp diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index befcfd613d..4383f3cde2 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -206,6 +206,7 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label) { wxLogDebug(wxT("Unrecognized accel key '%s', accel string ignored."), current.c_str()); + return NULL; } } } @@ -262,7 +263,7 @@ void wxMenuItemBase::SetAccel(wxAcceleratorEntry *accel) // we should process them here default: - if ( wxIsalnum((wxChar)code) ) + if ( wxIsalnum(code) ) { text << (wxChar)code; @@ -705,7 +706,7 @@ wxString wxMenuBase::GetLabel( int id ) const { wxMenuItem *item = FindItem(id); - wxCHECK_MSG( item, wxT(""), wxT("wxMenu::GetLabel: no such item") ); + wxCHECK_MSG( item, wxEmptyString, wxT("wxMenu::GetLabel: no such item") ); return item->GetText(); } @@ -723,7 +724,7 @@ wxString wxMenuBase::GetHelpString( int id ) const { wxMenuItem *item = FindItem(id); - wxCHECK_MSG( item, wxT(""), wxT("wxMenu::GetHelpString: no such item") ); + wxCHECK_MSG( item, wxEmptyString, wxT("wxMenu::GetHelpString: no such item") ); return item->GetHelp(); }