summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-04-21 23:15:28 +0200
committerMontel Laurent <[email protected]>2017-04-21 23:15:28 +0200
commitf5e87172df37cc1f70b5bfa93eaea0ccb35c0be5 (patch)
tree42f1a84566e0d516bef635e27f70232356d613f0
parent646c92d356c0e2e4024dbc2ac70151a71bc62257 (diff)
USe qAsConst
-rw-r--r--kaddressbookgrantlee/src/formatter/grantleecontactformatter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kaddressbookgrantlee/src/formatter/grantleecontactformatter.cpp b/kaddressbookgrantlee/src/formatter/grantleecontactformatter.cpp
index 8b478f0..f8be951 100644
--- a/kaddressbookgrantlee/src/formatter/grantleecontactformatter.cpp
+++ b/kaddressbookgrantlee/src/formatter/grantleecontactformatter.cpp
@@ -462,7 +462,7 @@ QString GrantleeContactFormatter::toHtml(HtmlForm form) const
}
if (!customs.empty()) {
- foreach (QString custom, customs) { //krazy:exclude=foreach
+ for (QString custom : qAsConst(customs)) { //krazy:exclude=foreach
if (custom.startsWith(QStringLiteral("KADDRESSBOOK-"))) {
custom.remove(QStringLiteral("KADDRESSBOOK-X-"));
custom.remove(QStringLiteral("KADDRESSBOOK-"));