X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/524c47aa3adf2af11a3069fd5da035a604f08f66..33f4afdbc08a2a8b8438420aa9d16aadee0bacc2:/src/osx/menu_osx.cpp diff --git a/src/osx/menu_osx.cpp b/src/osx/menu_osx.cpp index c2ac17c2e9..281c0121db 100644 --- a/src/osx/menu_osx.cpp +++ b/src/osx/menu_osx.cpp @@ -501,7 +501,7 @@ void wxMenuBar::Init() { m_eventHandler = this; m_menuBarFrame = NULL; - m_invokingWindow = (wxWindow*) NULL; + m_invokingWindow = NULL; m_rootMenu = new wxMenu(); wxMenu* applemenu = new wxMenu(); applemenu->SetAllowRearrange(false); @@ -890,7 +890,7 @@ bool wxMenuBar::Append(wxMenu *menu, const wxString& title) static void wxMenubarUnsetInvokingWindow( wxMenu *menu ) { - menu->SetInvokingWindow( (wxWindow*) NULL ); + menu->SetInvokingWindow( NULL ); wxMenuItemList::compatibility_iterator node = menu->GetMenuItems().GetFirst(); while (node) @@ -921,7 +921,7 @@ static void wxMenubarSetInvokingWindow( wxMenu *menu, wxWindow *win ) void wxMenuBar::UnsetInvokingWindow() { - m_invokingWindow = (wxWindow*) NULL; + m_invokingWindow = NULL; wxMenu *menu; wxMenuList::compatibility_iterator node = m_menus.GetFirst();