Title: [247491] trunk/Source/WebKit
Revision
247491
Author
commit-qu...@webkit.org
Date
2019-07-16 13:08:26 -0700 (Tue, 16 Jul 2019)

Log Message

Fix build warning because of missing super_class initializer
https://bugs.webkit.org/show_bug.cgi?id=199825

Patch by Frederic Wang <fw...@igalia.com> on 2019-07-16
Reviewed by Jonathan Bedard.

* UIProcess/ios/WKContentView.mm:
(keyCommandsPlaceholderHackForEvernote):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (247490 => 247491)


--- trunk/Source/WebKit/ChangeLog	2019-07-16 19:46:32 UTC (rev 247490)
+++ trunk/Source/WebKit/ChangeLog	2019-07-16 20:08:26 UTC (rev 247491)
@@ -1,3 +1,13 @@
+2019-07-16  Frederic Wang  <fw...@igalia.com>
+
+        Fix build warning because of missing super_class initializer
+        https://bugs.webkit.org/show_bug.cgi?id=199825
+
+        Reviewed by Jonathan Bedard.
+
+        * UIProcess/ios/WKContentView.mm:
+        (keyCommandsPlaceholderHackForEvernote):
+
 2019-07-16  Tim Horton  <timothy_hor...@apple.com>
 
         NSTextFinder holes don't scroll with the page

Modified: trunk/Source/WebKit/UIProcess/ios/WKContentView.mm (247490 => 247491)


--- trunk/Source/WebKit/UIProcess/ios/WKContentView.mm	2019-07-16 19:46:32 UTC (rev 247490)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentView.mm	2019-07-16 20:08:26 UTC (rev 247491)
@@ -149,10 +149,7 @@
 // as soon as reasonably possible. See <rdar://problem/51759247>.
 static NSArray *keyCommandsPlaceholderHackForEvernote(id self, SEL _cmd)
 {
-    struct objc_super super { 0 };
-    super.receiver = self;
-    super.super_class = class_getSuperclass(object_getClass(self));
-
+    struct objc_super super = { self, class_getSuperclass(object_getClass(self)) };
     using SuperKeyCommandsFunction = NSArray *(*)(struct objc_super*, SEL);
     return reinterpret_cast<SuperKeyCommandsFunction>(&objc_msgSendSuper)(&super, @selector(keyCommands));
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to