summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2017-10-23 14:45:15 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2017-10-23 15:56:45 +0000
commitf174d31667dca184439f520b9624a1471d9556a6 (patch)
treeadc658ce5c6fd35a06b2496e1dab9ca4f47dca9d
parentc181f418b9dd72e25ceff8ee7ccb030aa74f1cef (diff)
QHstsStore - use qAsConst in a range-loop
Found by clazy-range-loop. Change-Id: If43e8d127697f768dc7b1871dc9fef9dcc57ad54 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r--src/network/access/qhstsstore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qhstsstore.cpp b/src/network/access/qhstsstore.cpp
index 239a52b7a4..6d7f60ba8d 100644
--- a/src/network/access/qhstsstore.cpp
+++ b/src/network/access/qhstsstore.cpp
@@ -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))