[webkit-changes] [WebKit/WebKit] ae29f8: Use byteCast<>() in place of spanReinterpretCast<>()
Commit Queue
noreply at github.com
Wed Oct 23 07:52:33 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ae29f8516d88b24dbeb15d2b489eb4c64526ff79
https://github.com/WebKit/WebKit/commit/ae29f8516d88b24dbeb15d2b489eb4c64526ff79
Author: David Kilzer <ddkilzer at apple.com>
Date: 2024-10-23 (Wed, 23 Oct 2024)
Changed paths:
M Source/JavaScriptCore/runtime/PropertyName.h
M Source/WTF/wtf/text/ASCIILiteral.h
M Source/WTF/wtf/text/AtomString.cpp
M Source/WTF/wtf/text/AtomStringImpl.cpp
M Source/WTF/wtf/text/StringConcatenateNumbers.h
M Source/WTF/wtf/text/WTFString.cpp
Log Message:
-----------
Use byteCast<>() in place of spanReinterpretCast<>()
<https://bugs.webkit.org/show_bug.cgi?id=281944>
<rdar://138444837>
Reviewed by Darin Adler.
Replace spanReinterpretCast<>() with byteCast<>() for one-byte character
types.
* Source/JavaScriptCore/runtime/PropertyName.h:
(JSC::isCanonicalNumericIndexString):
* Source/WTF/wtf/text/ASCIILiteral.h:
(WTF::StringLiterals::operator _span):
* Source/WTF/wtf/text/AtomString.cpp:
(WTF::AtomString::number):
(WTF::AtomString::fromUTF8Internal):
* Source/WTF/wtf/text/AtomStringImpl.cpp:
(WTF::HashedUTF8CharactersTranslator::equal):
(WTF::HashedUTF8CharactersTranslator::translate):
(WTF::AtomStringImpl::add):
- Remove unneeded spanReinterpretCast<>() here.
* Source/WTF/wtf/text/StringConcatenateNumbers.h:
(WTF::FormattedNumber::span const):
(WTF::FormattedCSSNumber::span const):
* Source/WTF/wtf/text/WTFString.cpp:
(WTF::fromUTF8Impl):
(WTF::String::fromUTF8WithLatin1Fallback):
Canonical link: https://commits.webkit.org/285599@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list