[webkit-changes] [WebKit/WebKit] c0b222: WebCore: Prefer mutableCopy over mutableCopyWithZone
Rose
noreply at github.com
Fri Mar 24 10:48:04 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c0b2221b92ed2006b6216173610b438198f5a620
https://github.com/WebKit/WebKit/commit/c0b2221b92ed2006b6216173610b438198f5a620
Author: Rose <83477269+AtariDreams at users.noreply.github.com>
Date: 2023-03-24 (Fri, 24 Mar 2023)
Changed paths:
M Source/WebCore/platform/mac/WebNSAttributedStringExtras.mm
M Source/WebCore/platform/network/cocoa/WebCoreNSURLSession.mm
Log Message:
-----------
WebCore: Prefer mutableCopy over mutableCopyWithZone
https://bugs.webkit.org/show_bug.cgi?id=253825
Reviewed by Chris Dumez.
The mutableCopyWithZone method is not overridden, nor is the
zone parameter even acknowledged anymore by the Objective-C
runtime. We should replace calls to mutableCopyWithZone with
calls to mutableCopy.
* Source/WebCore/platform/mac/WebNSAttributedStringExtras.mm:
(attributedStringByStrippingAttachmentCharacters): Replace
mutableCopyWithZone with mutableCopy.
* Source/WebCore/platform/network/cocoa/WebCoreNSURLSession.mm:
(initWithSession): Ditto.
Canonical link: https://commits.webkit.org/262083@main
More information about the webkit-changes
mailing list