aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fuzzy-test/commandlineparser.h
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2019-11-24 10:12:55 +0900
committerIvan Komissarov <ABBAPOH@gmail.com>2020-01-28 20:22:21 +0000
commit960c10da41461741d75d1b1c9e99541964269bfb (patch)
treeb45c2961241e52b5eeeca01fc00a834b1f5f17c9 /tests/fuzzy-test/commandlineparser.h
parenteafd4a73ecdcfc1bc016af24e133de871c72dd53 (diff)
Apply 'modernize-pass-by-value' fix-it
Also, treat this warning as error This amends 936eee744db9b2fd1b9b66d168d80a113002aad2 Change-Id: I372c3b11baa08375d581052282f4546b2ba2e057 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/fuzzy-test/commandlineparser.h')
-rw-r--r--tests/fuzzy-test/commandlineparser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fuzzy-test/commandlineparser.h b/tests/fuzzy-test/commandlineparser.h
index 6dcbf84bc..76b49331b 100644
--- a/tests/fuzzy-test/commandlineparser.h
+++ b/tests/fuzzy-test/commandlineparser.h
@@ -35,7 +35,7 @@
class ParseException : public std::exception
{
public:
- ParseException(const QString &error) : errorMessage(error) { }
+ ParseException(QString error) : errorMessage(std::move(error)) { }
~ParseException() throw() override = default;
QString errorMessage;