From: David Elliott Date: Sat, 26 Mar 2005 05:28:40 +0000 (+0000) Subject: Metrowerks Objective-C++ is more strict about types than Apple's. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9151dcec4f51cf7e9c160ede683cc63392459fea Metrowerks Objective-C++ is more strict about types than Apple's. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index 5653b011b7..69168f11c4 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -997,14 +997,14 @@ wxWindow *wxWindowBase::DoFindFocus() wxCocoaNSView *win; NSWindow *keyWindow = [[NSApplication sharedApplication] keyWindow]; - win = wxCocoaNSView::GetFromCocoa([keyWindow firstResponder]); + win = wxCocoaNSView::GetFromCocoa(static_cast([keyWindow firstResponder])); if(win) return win->GetWxWindow(); NSWindow *mainWindow = [[NSApplication sharedApplication] keyWindow]; if(mainWindow == keyWindow) return NULL; - win = wxCocoaNSView::GetFromCocoa([mainWindow firstResponder]); + win = wxCocoaNSView::GetFromCocoa(static_cast([mainWindow firstResponder])); if(win) return win->GetWxWindow();