diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-10-26 00:32:01 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-10-26 10:54:32 (GMT) |
commit | b2c85cb698a922c0e87eb9f4a266be83625e97b7 (patch) | |
tree | 3bf7f22fe48979e92b106c6af45d12d44612fa65 /Source/cmLocalGenerator.cxx | |
parent | e07f147377b73c2d88a6921988c197c3e6a0150e (diff) | |
download | CMake-b2c85cb698a922c0e87eb9f4a266be83625e97b7.zip CMake-b2c85cb698a922c0e87eb9f4a266be83625e97b7.tar.gz CMake-b2c85cb698a922c0e87eb9f4a266be83625e97b7.tar.bz2 |
cmLocalGenerator::AppendDefines: Remove const char* overloads
Accept const std::string& arguments only
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 7beeb71..d5a18e6 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2108,7 +2108,7 @@ void cmLocalGenerator::AppendIncludeDirectories( } void cmLocalGenerator::AppendDefines(std::set<std::string>& defines, - const char* defines_list) const + std::string const& defines_list) const { std::set<BT<std::string>> tmp; this->AppendDefines(tmp, ExpandListWithBacktrace(defines_list)); @@ -2118,10 +2118,10 @@ void cmLocalGenerator::AppendDefines(std::set<std::string>& defines, } void cmLocalGenerator::AppendDefines(std::set<BT<std::string>>& defines, - const char* defines_list) const + std::string const& defines_list) const { // Short-circuit if there are no definitions. - if (!defines_list) { + if (defines_list.empty()) { return; } |