summaryrefslogtreecommitdiff
path: root/Source/cmInstallCommandArguments.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-23 13:16:55 +0000
committerKitware Robot <kwrobot@kitware.com>2019-01-23 08:17:49 -0500
commita7f5cd45e135dd51d67176fc40e2d769ac5f7db8 (patch)
tree677ad083ef4b1c9f7ca182ef6a29863841bf2169 /Source/cmInstallCommandArguments.cxx
parent22893baed1556420b93c4f3a62b4c450ac354040 (diff)
parent5a0784ddea62ee653a3a1199d4ff2140868d2c1d (diff)
downloadcmake-a7f5cd45e135dd51d67176fc40e2d769ac5f7db8.tar.gz
Merge topic 'tidy-pass-by-value'
5a0784ddea clang-tidy: Pass by value Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2836
Diffstat (limited to 'Source/cmInstallCommandArguments.cxx')
-rw-r--r--Source/cmInstallCommandArguments.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmInstallCommandArguments.cxx b/Source/cmInstallCommandArguments.cxx
index 538aa9f75c..4f872f4dbf 100644
--- a/Source/cmInstallCommandArguments.cxx
+++ b/Source/cmInstallCommandArguments.cxx
@@ -16,7 +16,7 @@ const char* cmInstallCommandArguments::PermissionsTable[] = {
const std::string cmInstallCommandArguments::EmptyString;
cmInstallCommandArguments::cmInstallCommandArguments(
- const std::string& defaultComponent)
+ std::string defaultComponent)
: Destination(&Parser, "DESTINATION", &ArgumentGroup)
, Component(&Parser, "COMPONENT", &ArgumentGroup)
, NamelinkComponent(&Parser, "NAMELINK_COMPONENT", &ArgumentGroup)
@@ -29,7 +29,7 @@ cmInstallCommandArguments::cmInstallCommandArguments(
, NamelinkSkip(&Parser, "NAMELINK_SKIP", &ArgumentGroup)
, Type(&Parser, "TYPE", &ArgumentGroup)
, GenericArguments(nullptr)
- , DefaultComponentName(defaultComponent)
+ , DefaultComponentName(std::move(defaultComponent))
{
}