summaryrefslogtreecommitdiffstats
path: root/Source/cmOptionCommand.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-09-06 00:08:17 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2018-09-06 00:08:17 (GMT)
commit437d0c16c72a45da8c81919f953859f5af71b19b (patch)
tree2a456a93a0eddf55d46313bd6d1bfbe668324d22 /Source/cmOptionCommand.cxx
parentb0f769ad2da5162f7f65e13061b18b4538f06d9a (diff)
downloadCMake-437d0c16c72a45da8c81919f953859f5af71b19b.zip
CMake-437d0c16c72a45da8c81919f953859f5af71b19b.tar.gz
CMake-437d0c16c72a45da8c81919f953859f5af71b19b.tar.bz2
cmStateSnapshot::GetDefinition(): Return std::string const*
Expose std::string type used internally in cmDefinitions instead of const char*
Diffstat (limited to 'Source/cmOptionCommand.cxx')
-rw-r--r--Source/cmOptionCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmOptionCommand.cxx b/Source/cmOptionCommand.cxx
index 239cd00..7d620bd 100644
--- a/Source/cmOptionCommand.cxx
+++ b/Source/cmOptionCommand.cxx
@@ -31,7 +31,7 @@ bool cmOptionCommand::InitialPass(std::vector<std::string> const& args,
bool checkAndWarn = false;
{
auto status = this->Makefile->GetPolicyStatus(cmPolicies::CMP0077);
- const char* existsBeforeSet =
+ const auto* existsBeforeSet =
this->Makefile->GetStateSnapshot().GetDefinition(args[0]);
switch (status) {
case cmPolicies::WARN:
@@ -72,7 +72,7 @@ bool cmOptionCommand::InitialPass(std::vector<std::string> const& args,
args[1].c_str(), cmStateEnums::BOOL);
if (checkAndWarn) {
- const char* existsAfterSet =
+ const auto* existsAfterSet =
this->Makefile->GetStateSnapshot().GetDefinition(args[0]);
if (!existsAfterSet) {
std::ostringstream w;