diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/api/tst_api.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/api/tst_api.cpp b/tests/auto/api/tst_api.cpp index 59089937a..c998b81e8 100644 --- a/tests/auto/api/tst_api.cpp +++ b/tests/auto/api/tst_api.cpp @@ -2268,8 +2268,12 @@ void TestApi::processResult() QCOMPARE(expectedExitCode == 0, result.success()); QCOMPARE(result.error(), QProcess::UnknownError); struct CheckParams { - CheckParams(bool r, const QString &f, const QByteArray &c, const QStringList &co) - : redirect(r), fileName(f), expectedContent(c), consoleOutput(co) {} + CheckParams(bool r, QString f, QByteArray c, QStringList co) + : redirect(r) + , fileName(std::move(f)) + , expectedContent(std::move(c)) + , consoleOutput(std::move(co)) + {} bool redirect; QString fileName; QByteArray expectedContent; |