aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfigtest.cpp
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2021-08-28 18:05:30 +0200
committerLaurent Montel <montel@kde.org>2021-08-28 18:05:30 +0200
commitdffdff73fa98a4fdebca38fb4a41938541ffb1c1 (patch)
tree7f1c9fb2c402eef2b7ecc90ec9d31cc506160b1e /autotests/kconfigtest.cpp
parent3259a6e6530cb0526bf71733ba28015f481f056e (diff)
downloadkconfig-dffdff73fa98a4fdebca38fb4a41938541ffb1c1.tar.gz
kconfig-dffdff73fa98a4fdebca38fb4a41938541ffb1c1.tar.bz2
GIT_SILENT: we can use std::as_const directly
Diffstat (limited to 'autotests/kconfigtest.cpp')
-rw-r--r--autotests/kconfigtest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/autotests/kconfigtest.cpp b/autotests/kconfigtest.cpp
index 256acb36..c3a68e42 100644
--- a/autotests/kconfigtest.cpp
+++ b/autotests/kconfigtest.cpp
@@ -1057,7 +1057,7 @@ void KConfigTest::testMerge()
<< "entry[fr]=French\n";
QFile file(m_testConfigDir + QLatin1String("/mergetest"));
file.open(QIODevice::ReadOnly | QIODevice::Text);
- for (const QByteArray &line : qAsConst(lines)) {
+ for (const QByteArray &line : std::as_const(lines)) {
QCOMPARE(line, file.readLine());
}
}
@@ -1124,7 +1124,7 @@ void KConfigTest::testOptionOrder()
QFile file(m_testConfigDir + QLatin1String("/doubleattrtest"));
file.open(QIODevice::ReadOnly | QIODevice::Text);
- for (const QByteArray &line : qAsConst(lines)) {
+ for (const QByteArray &line : std::as_const(lines)) {
QCOMPARE(line, file.readLine());
}
}
@@ -1943,7 +1943,7 @@ void KConfigTest::testThreads()
// QEXPECT_FAIL triggers race conditions, it should be fixed to use QThreadStorage...
// futures << QtConcurrent::run(this, &KConfigTest::testDeleteWhenLocalized);
// futures << QtConcurrent::run(this, &KConfigTest::testEntryMap);
- for (QFuture<void> f : qAsConst(futures)) {
+ for (QFuture<void> f : std::as_const(futures)) {
f.waitForFinished();
}
}