diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-10 14:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-10 14:55:09 (GMT) |
commit | a6cd48ac414238f922999e9ea457f1bc86c35163 (patch) | |
tree | dfd2d3958de911985f7f8051028def90bf32b154 /Source/cmInstalledFile.cxx | |
parent | c06e0356017beef41cd2bb57a6cebfb242a9128e (diff) | |
download | CMake-a6cd48ac414238f922999e9ea457f1bc86c35163.zip CMake-a6cd48ac414238f922999e9ea457f1bc86c35163.tar.gz CMake-a6cd48ac414238f922999e9ea457f1bc86c35163.tar.bz2 |
Source: use std::string overloads
Diffstat (limited to 'Source/cmInstalledFile.cxx')
-rw-r--r-- | Source/cmInstalledFile.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmInstalledFile.cxx b/Source/cmInstalledFile.cxx index 8972a63..32395d1 100644 --- a/Source/cmInstalledFile.cxx +++ b/Source/cmInstalledFile.cxx @@ -42,7 +42,8 @@ void cmInstalledFile::RemoveProperty(const std::string& prop) } void cmInstalledFile::SetProperty(cmMakefile const* mf, - const std::string& prop, const char* value) + const std::string& prop, + const std::string& value) { this->RemoveProperty(prop); this->AppendProperty(mf, prop, value); @@ -50,13 +51,14 @@ void cmInstalledFile::SetProperty(cmMakefile const* mf, void cmInstalledFile::AppendProperty(cmMakefile const* mf, const std::string& prop, - const char* value, bool /*asString*/) + const std::string& value, + bool /*asString*/) { cmListFileBacktrace backtrace = mf->GetBacktrace(); cmGeneratorExpression ge(backtrace); Property& property = this->Properties[prop]; - property.ValueExpressions.push_back(ge.Parse(value ? value : "")); + property.ValueExpressions.push_back(ge.Parse(value)); } bool cmInstalledFile::HasProperty(const std::string& prop) const |