aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2019-02-19 19:37:37 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2019-03-07 12:39:16 +0000
commit936eee744db9b2fd1b9b66d168d80a113002aad2 (patch)
tree84a4ab7f0f18c7ad9af5e6521012a86a6eef1189 /tests
parentf3056e49c3b2443c5dd9abf78c46381fdbbbd731 (diff)
Use pass-by-value and move
This fixes -Wmodernize-pass-by-value Change-Id: I85a732867866e43c39c1d77937fbc645433c96bd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/api/tst_api.cpp8
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;