summaryrefslogtreecommitdiffstats
path: root/tests/packagecreator/tst_packagecreator.cpp
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@pelagicore.com>2017-03-13 01:38:15 +0100
committerThomas Senyk <thomas.senyk@pelagicore.com>2017-03-14 13:29:21 +0000
commit9a7f098319c83209effc506671b44c20a334f9b4 (patch)
tree53e21e13c45accd7c49c98a6d6a8ecef941327c5 /tests/packagecreator/tst_packagecreator.cpp
parent69a03eba73cbae8978e61cd99eb238fe0dccf305 (diff)
Replace all foreach loops with C++11 ranged-for loops
Also replaced a few loops with more efficient implementations. Change-Id: I56f9242a410741fc5e7a291be7c6090c599b7666 Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
Diffstat (limited to 'tests/packagecreator/tst_packagecreator.cpp')
-rw-r--r--tests/packagecreator/tst_packagecreator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/packagecreator/tst_packagecreator.cpp b/tests/packagecreator/tst_packagecreator.cpp
index 4699f9f5..07883673 100644
--- a/tests/packagecreator/tst_packagecreator.cpp
+++ b/tests/packagecreator/tst_packagecreator.cpp
@@ -142,7 +142,7 @@ void tst_PackageCreator::createAndVerify()
// check the contents of the files
- foreach (const QString &file, files) {
+ for (const QString &file : qAsConst(files)) {
QFile src(m_baseDir.absoluteFilePath(file));
QVERIFY2(src.open(QFile::ReadOnly), qPrintable(src.errorString()));
QByteArray data = src.readAll();