diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-02-19 19:37:37 +0100 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-03-07 12:39:16 +0000 |
commit | 936eee744db9b2fd1b9b66d168d80a113002aad2 (patch) | |
tree | 84a4ab7f0f18c7ad9af5e6521012a86a6eef1189 /src/app/qbs-setup-toolchains | |
parent | f3056e49c3b2443c5dd9abf78c46381fdbbbd731 (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.cpp | 6 |
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)) { } |