diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-26 13:44:26 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-29 20:51:46 (GMT) |
commit | 24885d4efa17d4232e266ef053899613c32fdeb7 (patch) | |
tree | a7941b55c08b9ab4492d7405f07df523819ac20f /Source/cmDefinitions.cxx | |
parent | 012a75a00f060d6ca36cc9ffb97439a7ad526395 (diff) | |
download | CMake-24885d4efa17d4232e266ef053899613c32fdeb7.zip CMake-24885d4efa17d4232e266ef053899613c32fdeb7.tar.gz CMake-24885d4efa17d4232e266ef053899613c32fdeb7.tar.bz2 |
cmDefinitions: Replace private constructor with MakeClosure.
Diffstat (limited to 'Source/cmDefinitions.cxx')
-rw-r--r-- | Source/cmDefinitions.cxx | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/Source/cmDefinitions.cxx b/Source/cmDefinitions.cxx index f2100eb..c4d285a 100644 --- a/Source/cmDefinitions.cxx +++ b/Source/cmDefinitions.cxx @@ -75,21 +75,16 @@ std::vector<std::string> cmDefinitions::LocalKeys() const } //---------------------------------------------------------------------------- -cmDefinitions cmDefinitions::Closure() const -{ - return cmDefinitions(ClosureTag(), this); -} - -//---------------------------------------------------------------------------- -cmDefinitions::cmDefinitions(ClosureTag const&, cmDefinitions const* root): - Up(0) +cmDefinitions cmDefinitions::MakeClosure() const { std::set<std::string> undefined; - this->ClosureImpl(undefined, root); + cmDefinitions closure; + closure.MakeClosure(undefined, this); + return closure; } //---------------------------------------------------------------------------- -void cmDefinitions::ClosureImpl(std::set<std::string>& undefined, +void cmDefinitions::MakeClosure(std::set<std::string>& undefined, cmDefinitions const* defs) { // Consider local definitions. @@ -114,7 +109,7 @@ void cmDefinitions::ClosureImpl(std::set<std::string>& undefined, // Traverse parents. if(cmDefinitions const* up = defs->Up) { - this->ClosureImpl(undefined, up); + this->MakeClosure(undefined, up); } } |