diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2021-05-11 15:20:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2021-05-11 15:20:04 (GMT) |
commit | 5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf (patch) | |
tree | 440ad6c931ede616674c1616cb328efc0ad80cf0 /Source/cmMakefile.cxx | |
parent | ee87e53d3732a6482841c01c16e89f2822137d0e (diff) | |
download | CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.zip CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.tar.gz CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.tar.bz2 |
Source: Minor code improvements
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 5a37bb9..29f9e36 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -2479,7 +2479,7 @@ const std::string& cmMakefile::GetRequiredDefinition( const std::string& name) const { static std::string const empty; - const std::string* def = this->GetDefinition(name); + cmProp def = this->GetDefinition(name); if (!def) { cmSystemTools::Error("Error required internal CMake variable not " "set, cmake may not be built correctly.\n" @@ -2553,7 +2553,7 @@ cmProp cmMakefile::GetDefinition(const std::string& name) const const std::string& cmMakefile::GetSafeDefinition(const std::string& name) const { static std::string const empty; - const std::string* def = this->GetDefinition(name); + cmProp def = this->GetDefinition(name); if (!def) { return empty; } @@ -3067,7 +3067,7 @@ MessageType cmMakefile::ExpandVariablesInStringNew( if (filename && variable == lineVar) { varresult = std::to_string(line); } else { - const std::string* def = this->GetDefinition(variable); + cmProp def = this->GetDefinition(variable); if (def) { varresult = *def; } else if (!this->SuppressSideEffects) { |