[Webkit-unassigned] [Bug 155395] [iOS]=?UTF-8?Q?=20WKPreviewAction=20conforms=20to=20NSCopying=20but=20doesn=E2=80=99t=20override=20=2DcopyWithZone?=:

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 14 15:55:24 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=155395

--- Comment #10 from Sam Weinig <sam at webkit.org> ---
(In reply to comment #9)
> Comment on attachment 274024 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=274024&action=review
> 
> You should remove the explicit conformance to NSCopying of WKPreviewAction
> since UIPreviewAction already conforms to it.
> 
> > Source/WebKit2/UIProcess/API/Cocoa/WKPreviewActionItem.mm:45
> > +    WKPreviewAction *action = [super copyWithZone:zone];
> > +    action->_identifier = self.identifier;
> > +    return action;
> 
> Since WKPreviewAction is immutable, this can be implemented as:
> 
>     return [self retain];

Actually, it looks like it isn't completely immutable, so you should do your thing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160314/a00b171f/attachment.html>


More information about the webkit-unassigned mailing list