diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-01-20 18:00:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-01-21 14:19:13 (GMT) |
commit | 9db532f44dc014303e308e43b097175b8827508c (patch) | |
tree | e8dca2a118f40e4f9af1bbb70dfb984e428c3aad /Source/cmInstallFilesGenerator.cxx | |
parent | 941c09616bc214db77e3b1b7e5229517db08b45c (diff) | |
download | CMake-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/cmInstallFilesGenerator.cxx')
-rw-r--r-- | Source/cmInstallFilesGenerator.cxx | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Source/cmInstallFilesGenerator.cxx b/Source/cmInstallFilesGenerator.cxx index f5b69a5..e470ff8 100644 --- a/Source/cmInstallFilesGenerator.cxx +++ b/Source/cmInstallFilesGenerator.cxx @@ -2,6 +2,8 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmInstallFilesGenerator.h" +#include <utility> + #include "cmGeneratorExpression.h" #include "cmInstallType.h" #include "cmStringAlgorithms.h" @@ -9,16 +11,17 @@ class cmLocalGenerator; cmInstallFilesGenerator::cmInstallFilesGenerator( - std::vector<std::string> const& files, const char* dest, bool programs, - const char* file_permissions, std::vector<std::string> const& configurations, - const char* component, MessageLevel message, bool exclude_from_all, - const char* rename, bool optional) - : cmInstallGenerator(dest, configurations, component, message, - exclude_from_all) + std::vector<std::string> const& files, std::string const& dest, + bool programs, std::string file_permissions, + std::vector<std::string> const& configurations, std::string const& component, + MessageLevel message, bool exclude_from_all, std::string rename, + bool optional) + : cmInstallGenerator(dest.c_str(), configurations, component.c_str(), + message, exclude_from_all) , LocalGenerator(nullptr) , Files(files) - , FilePermissions(file_permissions) - , Rename(rename) + , FilePermissions(std::move(file_permissions)) + , Rename(std::move(rename)) , Programs(programs) , Optional(optional) { |