diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-05-19 02:16:39 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-05-21 11:15:34 +0000 |
commit | 52737be344ba20625a2a0d305517eafadb78c74d (patch) | |
tree | fc0505fc17159e7e49dbb80b936d71df8c938258 /tests | |
parent | c75be7ad516c7cd041820a9e651ae71fcb8248c4 (diff) |
Apply modernize-loop-convert fix-it
Makes clang-tidy happier
Change-Id: Ic29b552572719ea58c7ad385cc6e1d68cef9eedc
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/blackbox/tst_blackbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp index 99e1142f8..84322a7c7 100644 --- a/tests/auto/blackbox/tst_blackbox.cpp +++ b/tests/auto/blackbox/tst_blackbox.cpp @@ -882,8 +882,8 @@ void TestBlackbox::dependenciesProperty() QJsonArray cpp_dependencies = product2_cpp.value("dependencies").toArray(); QVERIFY(!cpp_dependencies.isEmpty()); int qbsCount = 0; - for (int i = 0; i < cpp_dependencies.size(); ++i) { - if (cpp_dependencies.at(i).toObject().value("name").toString() == "qbs") + for (const auto &dep : cpp_dependencies) { + if (dep.toObject().value("name").toString() == "qbs") ++qbsCount; } QCOMPARE(qbsCount, 1); |