QHstsStore - use qAsConst in a range-loop
Found by clazy-range-loop. Change-Id: If43e8d127697f768dc7b1871dc9fef9dcc57ad54 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
c181f418b9
commit
f174d31667
@ -114,7 +114,7 @@ void QHstsStore::synchronize()
|
||||
|
||||
if (observedPolicies.size()) {
|
||||
beginHstsGroups();
|
||||
for (const QHstsPolicy &policy : observedPolicies) {
|
||||
for (const QHstsPolicy &policy : qAsConst(observedPolicies)) {
|
||||
const QString key(host_name_to_settings_key(policy.host()));
|
||||
// If we fail to write a new, updated policy, we also remove the old one.
|
||||
if (policy.isExpired() || !serializePolicy(key, policy))
|
||||
|
Loading…
x
Reference in New Issue
Block a user