cmInstallGenerator: std::string params

Several construction parameters converted to std::string
Also made a few class members const
This commit is contained in:
Vitaly Stakhovsky
2020-01-21 11:00:00 -05:00
parent 7a89e3c36c
commit 5e54b0cf2f
13 changed files with 44 additions and 42 deletions

View File

@@ -12,11 +12,10 @@
#include "cmPolicies.h"
#include "cmScriptGenerator.h"
cmInstallScriptGenerator::cmInstallScriptGenerator(std::string script,
bool code,
const char* component,
bool exclude_from_all)
: cmInstallGenerator(nullptr, std::vector<std::string>(), component,
cmInstallScriptGenerator::cmInstallScriptGenerator(
std::string script, bool code, std::string const& component,
bool exclude_from_all)
: cmInstallGenerator("", std::vector<std::string>(), component,
MessageDefault, exclude_from_all)
, Script(std::move(script))
, Code(code)