aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/qbs-setup-toolchains
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 /src/app/qbs-setup-toolchains
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 'src/app/qbs-setup-toolchains')
-rw-r--r--src/app/qbs-setup-toolchains/probe.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app/qbs-setup-toolchains/probe.cpp b/src/app/qbs-setup-toolchains/probe.cpp
index 728fe303d..c4ccbc517 100644
--- a/src/app/qbs-setup-toolchains/probe.cpp
+++ b/src/app/qbs-setup-toolchains/probe.cpp
@@ -191,8 +191,10 @@ static void setCommonProperties(Profile &profile, const QString &compilerFilePat
class ToolPathSetup
{
public:
- ToolPathSetup(Profile *profile, const QString &path, const QString &toolchainPrefix)
- : m_profile(profile), m_compilerDirPath(path), m_toolchainPrefix(toolchainPrefix)
+ ToolPathSetup(Profile *profile, QString path, QString toolchainPrefix)
+ : m_profile(profile),
+ m_compilerDirPath(std::move(path)),
+ m_toolchainPrefix(std::move(toolchainPrefix))
{
}