aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-12-13 08:19:17 +0100
committerMontel Laurent <[email protected]>2017-12-13 08:48:37 +0100
commita91ebd6a49ee1e95375af57a9aeb5d1090f74de0 (patch)
tree4cc3f97ef519605c38d6a5e8be734903e88239be
parent2ce12847ea9fa6fcdc0956eba13260d9b9f0351c (diff)
Port to for(...:..)
-rw-r--r--autotests/libs/collectionsynctest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/autotests/libs/collectionsynctest.cpp b/autotests/libs/collectionsynctest.cpp
index b25b1d0..9054709 100644
--- a/autotests/libs/collectionsynctest.cpp
+++ b/autotests/libs/collectionsynctest.cpp
@@ -131,12 +131,12 @@ private:
void cleanupBenchmark(const Collection::List &collections)
{
Collection::List baseCols;
- Q_FOREACH (const Collection &col, collections) {
+ for (const Collection &col : collections) {
if (col.remoteId().startsWith(QLatin1String("/baseCol")) || col.remoteId() == QLatin1String("/shared")) {
baseCols << col;
}
}
- Q_FOREACH (const Collection &col, baseCols) {
+ for (const Collection &col : baseCols) {
CollectionDeleteJob *del = new CollectionDeleteJob(col);
AKVERIFYEXEC(del);
}