aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-12-11 22:29:54 +0100
committerMontel Laurent <[email protected]>2017-12-11 22:29:54 +0100
commit43f838ab0b6b2cb86ab9f8eff59e9650cf763b59 (patch)
tree628d1b2cca769458e3d4c634cb19a00196488dce
parent1fdbacc9af7d441de4b53ff2466e1a88321fe70e (diff)
Port to for(...:...)
-rw-r--r--src/common/davcollectionsfetchjob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/davcollectionsfetchjob.cpp b/src/common/davcollectionsfetchjob.cpp
index d142f19..3c90189 100644
--- a/src/common/davcollectionsfetchjob.cpp
+++ b/src/common/davcollectionsfetchjob.cpp
@@ -273,7 +273,7 @@ void DavCollectionsFetchJob::collectionsFetchFinished(KJob *job)
// don't add this resource if it has already been detected
bool alreadySeen = false;
- foreach (const DavCollection &seen, mCollections) {
+ for (const DavCollection &seen : qAsConst(mCollections)) {
if (seen.url().toDisplayString() == url.toDisplayString()) {
alreadySeen = true;
}