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/cmInstallSubdirectoryGenerator.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/cmInstallSubdirectoryGenerator.cxx')
-rw-r--r-- | Source/cmInstallSubdirectoryGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmInstallSubdirectoryGenerator.cxx b/Source/cmInstallSubdirectoryGenerator.cxx index 5405b7c..8b45972 100644 --- a/Source/cmInstallSubdirectoryGenerator.cxx +++ b/Source/cmInstallSubdirectoryGenerator.cxx @@ -4,6 +4,7 @@ #include <memory> #include <sstream> +#include <utility> #include <vector> #include "cmLocalGenerator.h" @@ -13,11 +14,11 @@ #include "cmSystemTools.h" cmInstallSubdirectoryGenerator::cmInstallSubdirectoryGenerator( - cmMakefile* makefile, const char* binaryDirectory, bool excludeFromAll) + cmMakefile* makefile, std::string binaryDirectory, bool excludeFromAll) : cmInstallGenerator(nullptr, std::vector<std::string>(), nullptr, MessageDefault, excludeFromAll) , Makefile(makefile) - , BinaryDirectory(binaryDirectory) + , BinaryDirectory(std::move(binaryDirectory)) { } |