From: Peter Maydell Date: Tue, 19 May 2015 08:11:18 +0000 (+0100) Subject: ui/cocoa: openPanelDidEnd returnCode should be NSInteger, not int X-Git-Tag: v2.4.0-rc0~130^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de1aadee289722478c19f211f0fa3a38e7e66b6f;p=thirdparty%2Fqemu.git ui/cocoa: openPanelDidEnd returnCode should be NSInteger, not int The type for openPanelDidEnd's returnCode argument should be NSInteger, not int. This only matters for the OSX 10.5 code path where we pass the method directly to an OSX function to call. Signed-off-by: Peter Maydell Message-id: 1431296361-16981-4-git-send-email-peter.maydell@linaro.org --- diff --git a/ui/cocoa.m b/ui/cocoa.m index f6c5fb41aaa..563ea47253a 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -787,7 +787,7 @@ QemuCocoaView *cocoaView; { } - (void)startEmulationWithArgc:(int)argc argv:(char**)argv; -- (void)openPanelDidEnd:(NSOpenPanel *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo; +- (void)openPanelDidEnd:(NSOpenPanel *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo; - (void)doToggleFullScreen:(id)sender; - (void)toggleFullScreen:(id)sender; - (void)showQEMUDoc:(id)sender; @@ -890,7 +890,7 @@ QemuCocoaView *cocoaView; exit(status); } -- (void)openPanelDidEnd:(NSOpenPanel *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo +- (void)openPanelDidEnd:(NSOpenPanel *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo { COCOA_DEBUG("QemuCocoaAppController: openPanelDidEnd\n");