Skip to content

Commit

Permalink
Cherry-pick 965cb88. rdar://115237220
Browse files Browse the repository at this point in the history
    Unreviewed, fix the internal visionOS build
    rdar://115237220

    Add a missing `.get()` call when casting a `RetainPtr` to an Objective-C object of a different type;
    this now surfaces as a compiler warning in some versions of the visionOS SDK.

    * Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
    (-[WKFullscreenWindowSceneDelegate methodSignatureForSelector:]):

    Canonical link: https://commits.webkit.org/267858@main
  • Loading branch information
pxlcoder authored and MyahCobbs committed Sep 15, 2023
1 parent 04cba1f commit 3ee1274
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
NSMethodSignature *signature = [super methodSignatureForSelector:aSelector];
if (!signature)
signature = [(NSObject *)_originalDelegate methodSignatureForSelector:aSelector];
signature = [(NSObject *)_originalDelegate.get() methodSignatureForSelector:aSelector];
return signature;
}

Expand Down

0 comments on commit 3ee1274

Please sign in to comment.