[webkit-changes] [WebKit/WebKit] 4e2cbc: Replace `std::optional<ASCIILiteral>` usage with `...
k-monsen
noreply at github.com
Thu Feb 20 14:44:37 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4e2cbcfebd2f422292fd73d912607356a4a6f5d1
https://github.com/WebKit/WebKit/commit/4e2cbcfebd2f422292fd73d912607356a4a6f5d1
Author: Kristian Monsen <k_monsen at apple.com>
Date: 2025-02-20 (Thu, 20 Feb 2025)
Changed paths:
M Source/WebCore/crypto/gcrypt/CryptoAlgorithmECDSAGCrypt.cpp
M Source/WebCore/crypto/gcrypt/CryptoAlgorithmRSASSA_PKCS1_v1_5GCrypt.cpp
M Source/WebCore/crypto/gcrypt/CryptoAlgorithmRSA_OAEPGCrypt.cpp
M Source/WebCore/crypto/gcrypt/CryptoAlgorithmRSA_PSSGCrypt.cpp
M Source/WebCore/crypto/gcrypt/GCryptUtilities.cpp
M Source/WebCore/crypto/gcrypt/GCryptUtilities.h
M Source/WebCore/platform/graphics/FontCache.cpp
M Source/WebCore/platform/graphics/FontCache.h
M Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
M Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp
M Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp
M Source/WebCore/platform/graphics/win/FontCacheWin.cpp
Log Message:
-----------
Replace `std::optional<ASCIILiteral>` usage with `ASCIILiteral`
https://bugs.webkit.org/show_bug.cgi?id=287270
rdar://144810137
Reviewed by Ryan Reno.
Removed std::optional from uses of ASCIILiteral as it has a
bool() operator and a null state built in. Changed where std:nullopt
were returned to {}, and removed '#include <wtf/StdLibExtras.h>'
where possible.
* Source/WebCore/crypto/gcrypt/GCryptUtilities.cpp:
(WebCore::hashAlgorithmName):
* Source/WebCore/crypto/gcrypt/GCryptUtilities.h:
* Source/WebCore/platform/graphics/FontCache.cpp:
(WebCore::FontCache::alternateFamilyName):
(WebCore::FontCache::cachedFontPlatformData):
* Source/WebCore/platform/graphics/FontCache.h:
* Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::FontCache::platformAlternateFamilyName):
* Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp:
(WebCore::FontCache::platformAlternateFamilyName):
* Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp:
(WebCore::FontCache::platformAlternateFamilyName):
* Source/WebCore/platform/graphics/win/FontCacheWin.cpp:
(WebCore::FontCache::platformAlternateFamilyName):
Canonical link: https://commits.webkit.org/290745@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