+2015-03-10 Tim Horton <timothy_horton@apple.com>
+
+ Fix the Mac build with a newer compiler
+
+ * Plugins/WebPluginController.mm:
+ (WebKit_TSUpdateCheck_alertDidEnd_returnCode_contextInfo_):
+ (WebKit_NSAlert_beginSheetModalForWindow_modalDelegate_didEndSelector_contextInfo_):
+
2015-03-09 David Kilzer <ddkilzer@apple.com>
[iOS] Fix build when compiling with dead code stripping disabled
typedef void (*alertDidEndIMP)(id, SEL, NSAlert *, NSInteger, void*);
static alertDidEndIMP original_TSUpdateCheck_alertDidEnd_returnCode_contextInfo_;
+@class TSUpdateCheck;
+
static void WebKit_TSUpdateCheck_alertDidEnd_returnCode_contextInfo_(id object, SEL selector, NSAlert *alert, NSInteger returnCode, void* contextInfo)
{
- [[object delegate] autorelease];
+ [[(TSUpdateCheck *)object delegate] autorelease];
original_TSUpdateCheck_alertDidEnd_returnCode_contextInfo_(object, selector, alert, returnCode, contextInfo);
}
static void WebKit_NSAlert_beginSheetModalForWindow_modalDelegate_didEndSelector_contextInfo_(id object, SEL selector, NSWindow *window, id modalDelegate, SEL didEndSelector, void* contextInfo)
{
if (isKindOfClass(modalDelegate, @"TSUpdateCheck"))
- [[modalDelegate delegate] retain];
+ [[(TSUpdateCheck *)modalDelegate delegate] retain];
original_NSAlert_beginSheetModalForWindow_modalDelegate_didEndSelector_contextInfo_(object, selector, window, modalDelegate, didEndSelector, contextInfo);
}