aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/tst_blackbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/tst_blackbox.cpp')
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index 8154e7262..94f0d4b52 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -815,7 +815,7 @@ void TestBlackbox::changeTrackingAndMultiplexing()
static QJsonObject findByName(const QJsonArray &objects, const QString &name)
{
- for (const QJsonValue v : objects) {
+ for (const QJsonValue &v : objects) {
if (!v.isObject())
continue;
QJsonObject obj = v.toObject();
@@ -5484,7 +5484,7 @@ void TestBlackbox::chooseModuleInstanceByPriority()
QFile file(installRoot + "/gerbil.txt");
QVERIFY(file.open(QIODevice::ReadOnly));
const QString content = QString::fromUtf8(file.readAll());
- for (auto str : expectedSubStrings) {
+ for (const auto &str : expectedSubStrings) {
if (content.contains(str))
continue;
qDebug() << "content:" << content;