Changeset 247491 in webkit


Ignore:
Timestamp:
Jul 16, 2019 1:08:26 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

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

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

  • UIProcess/ios/WKContentView.mm:

(keyCommandsPlaceholderHackForEvernote):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r247490 r247491  
     12019-07-16  Frederic Wang  <fwang@igalia.com>
     2
     3        Fix build warning because of missing super_class initializer
     4        https://bugs.webkit.org/show_bug.cgi?id=199825
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * UIProcess/ios/WKContentView.mm:
     9        (keyCommandsPlaceholderHackForEvernote):
     10
    1112019-07-16  Tim Horton  <timothy_horton@apple.com>
    212
  • trunk/Source/WebKit/UIProcess/ios/WKContentView.mm

    r246892 r247491  
    150150static NSArray *keyCommandsPlaceholderHackForEvernote(id self, SEL _cmd)
    151151{
    152     struct objc_super super { 0 };
    153     super.receiver = self;
    154     super.super_class = class_getSuperclass(object_getClass(self));
    155 
     152    struct objc_super super = { self, class_getSuperclass(object_getClass(self)) };
    156153    using SuperKeyCommandsFunction = NSArray *(*)(struct objc_super*, SEL);
    157154    return reinterpret_cast<SuperKeyCommandsFunction>(&objc_msgSendSuper)(&super, @selector(keyCommands));
Note: See TracChangeset for help on using the changeset viewer.