Skip to content

Commit 033b756

Browse files
Insert some explicit casts to solve macosx10.10 SDK issues
Because the contents of various headers have changed, we need to be more explicit about casts because the compiler's automagic deduction is no longer working for these particular cases.
1 parent 5de7bae commit 033b756

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

engine/src/mac-core.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ - (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:
233233

234234
static OSErr preDispatchAppleEvent(const AppleEvent *p_event, AppleEvent *p_reply, SRefCon p_context)
235235
{
236-
return [[NSApp delegate] preDispatchAppleEvent: p_event withReply: p_reply];
236+
return [(MCApplicationDelegate*)[NSApp delegate] preDispatchAppleEvent: p_event withReply: p_reply];
237237
}
238238

239239
- (OSErr)preDispatchAppleEvent: (const AppleEvent *)p_event withReply: (AppleEvent *)p_reply

revbrowser/src/osxbrowser.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ - (WebView *)webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest *)
176176

177177
id myDocument = [[NSDocumentController sharedDocumentController] openUntitledDocumentOfType:@"DocumentType" display:YES];
178178
[[[myDocument webView] mainFrame] loadRequest:request];
179-
return [myDocument webView];
179+
return (WebView*)[myDocument webView];
180180
}
181181

182182
- (void)webViewShow:(WebView *)sender

0 commit comments

Comments
 (0)