[webkit-changes] [WebKit/WebKit] d0b38a: Fix up copy-prone uses of std::tuple structured bi...
Žan Doberšek
noreply at github.com
Tue Jan 3 02:37:53 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d0b38ae861c77ada6620bfd3ed3642956e6f9114
https://github.com/WebKit/WebKit/commit/d0b38ae861c77ada6620bfd3ed3642956e6f9114
Author: Žan Doberšek <zdobersek at igalia.com>
Date: 2023-01-03 (Tue, 03 Jan 2023)
Changed paths:
M Source/WebCore/html/TextFieldInputType.cpp
M Source/WebCore/style/RuleFeature.cpp
M Source/WebKit/NetworkProcess/cache/PrefetchCache.cpp
Log Message:
-----------
Fix up copy-prone uses of std::tuple structured binding
https://bugs.webkit.org/show_bug.cgi?id=250018
Reviewed by Carlos Garcia Campos.
Adjust a few places where structured binding is used on std::tuple objects,
using a lvalue-reference-qualified auto specifier to reference the objects
inside the existing tuple rather than copying the whole tuple and retrieving the
objects from that.
* Source/WebCore/html/TextFieldInputType.cpp:
(WebCore::TextFieldInputType::createContainer):
* Source/WebCore/style/RuleFeature.cpp:
(WebCore::Style::RuleFeatureSet::collectFeatures):
* Source/WebKit/NetworkProcess/cache/PrefetchCache.cpp:
(WebKit::PrefetchCache::clearExpiredEntries):
Canonical link: https://commits.webkit.org/258385@main
More information about the webkit-changes
mailing list