summaryrefslogtreecommitdiff
path: root/tests/auto/debugwrapper/tst_debugwrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/debugwrapper/tst_debugwrapper.cpp')
-rw-r--r--tests/auto/debugwrapper/tst_debugwrapper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/debugwrapper/tst_debugwrapper.cpp b/tests/auto/debugwrapper/tst_debugwrapper.cpp
index 7798a748..769ebd3e 100644
--- a/tests/auto/debugwrapper/tst_debugwrapper.cpp
+++ b/tests/auto/debugwrapper/tst_debugwrapper.cpp
@@ -87,7 +87,7 @@ void tst_DebugWrapper::specification()
for (auto it = env.cbegin(); it != env.cend(); ++it)
strEnv.insert(QString::fromLatin1(it.key()), QString::fromLatin1(it.value()));
- for (const auto &c : qAsConst(cmd))
+ for (const auto &c : std::as_const(cmd))
strCmd << QString::fromLatin1(c);
QCOMPARE(DebugWrapper::parseSpecification(spec, resultCmd, resultEnv), valid);
@@ -127,11 +127,11 @@ void tst_DebugWrapper::substitute()
QFETCH(QByteArrayList, result);
QStringList strCmd, strArguments, strResult;
- for (const auto &c : qAsConst(cmd))
+ for (const auto &c : std::as_const(cmd))
strCmd << QString::fromLatin1(c);
- for (const auto &a : qAsConst(arguments))
+ for (const auto &a : std::as_const(arguments))
strArguments << QString::fromLatin1(a);
- for (const auto &r : qAsConst(result))
+ for (const auto &r : std::as_const(result))
strResult << QString::fromLatin1(r);
QCOMPARE(DebugWrapper::substituteCommand(strCmd, program, strArguments), strResult);