summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallProgramsCommand.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-01-20 18:00:00 (GMT)
committerBrad King <brad.king@kitware.com>2020-01-21 14:19:13 (GMT)
commit9db532f44dc014303e308e43b097175b8827508c (patch)
treee8dca2a118f40e4f9af1bbb70dfb984e428c3aad /Source/cmInstallProgramsCommand.cxx
parent941c09616bc214db77e3b1b7e5229517db08b45c (diff)
downloadCMake-9db532f44dc014303e308e43b097175b8827508c.zip
CMake-9db532f44dc014303e308e43b097175b8827508c.tar.gz
CMake-9db532f44dc014303e308e43b097175b8827508c.tar.bz2
cmInstall*Generator: std::string params
Several construction parameters converted to std::string Also made a few class members const
Diffstat (limited to 'Source/cmInstallProgramsCommand.cxx')
-rw-r--r--Source/cmInstallProgramsCommand.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmInstallProgramsCommand.cxx b/Source/cmInstallProgramsCommand.cxx
index 2fd9bad..be07fd4 100644
--- a/Source/cmInstallProgramsCommand.cxx
+++ b/Source/cmInstallProgramsCommand.cxx
@@ -89,8 +89,8 @@ static void FinalAction(cmMakefile& makefile, std::string const& dest,
}
// Use a file install generator.
- const char* no_permissions = "";
- const char* no_rename = "";
+ const std::string no_permissions;
+ const std::string no_rename;
bool no_exclude_from_all = false;
std::string no_component =
makefile.GetSafeDefinition("CMAKE_INSTALL_DEFAULT_COMPONENT_NAME");
@@ -98,8 +98,8 @@ static void FinalAction(cmMakefile& makefile, std::string const& dest,
cmInstallGenerator::MessageLevel message =
cmInstallGenerator::SelectMessageLevel(&makefile);
makefile.AddInstallGenerator(cm::make_unique<cmInstallFilesGenerator>(
- files, destination.c_str(), true, no_permissions, no_configurations,
- no_component.c_str(), message, no_exclude_from_all, no_rename));
+ files, destination, true, no_permissions, no_configurations, no_component,
+ message, no_exclude_from_all, no_rename));
}
/**