summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-07-30 08:38:51 +0200
committerMontel Laurent <[email protected]>2017-07-30 08:38:51 +0200
commitecab7a60a928a002696cc9d92159a3fdcafd4c14 (patch)
tree847db4361fe180334eafa7209ba29b6740b51242
parenta9cec92eb1fa42ac2c550ab54e234fec5f80bb27 (diff)
Use for(...:...)
-rw-r--r--src/kmailtransport/servertest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kmailtransport/servertest.cpp b/src/kmailtransport/servertest.cpp
index 7926556..53d276c 100644
--- a/src/kmailtransport/servertest.cpp
+++ b/src/kmailtransport/servertest.cpp
@@ -124,7 +124,7 @@ void ServerTestPrivate::finalResult()
QVector<int> resultsAsVector;
resultsAsVector.reserve(connectionResults.size());
- foreach (int res, connectionResults) {
+ for (int res : qAsConst(connectionResults)) {
resultsAsVector.append(res);
}