diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-16 03:33:30 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-05-17 14:50:18 (GMT) |
commit | f170985e7aaec7562ca481bab49228ece233c4e4 (patch) | |
tree | 41b6cfdc135d8243545faf8e608daca6b51f795e /Source/cmMakefile.cxx | |
parent | 98c5c90361f89f810cdd6fb233f3e822b638f143 (diff) | |
download | CMake-f170985e7aaec7562ca481bab49228ece233c4e4.zip CMake-f170985e7aaec7562ca481bab49228ece233c4e4.tar.gz CMake-f170985e7aaec7562ca481bab49228ece233c4e4.tar.bz2 |
cmDefinitions: Make the ClosureKeys method static.
For consistency with all other closure-related methods.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 7b8d3af..9f9171c 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -94,16 +94,8 @@ public: std::vector<std::string> ClosureKeys() const { - std::vector<std::string> closureKeys; - std::set<std::string> bound; - for (std::list<cmDefinitions>::const_reverse_iterator it = - this->VarStack.rbegin(); it != this->VarStack.rend(); ++it) - { - std::vector<std::string> const& localKeys = it->ClosureKeys(bound); - closureKeys.insert(closureKeys.end(), - localKeys.begin(), localKeys.end()); - } - return closureKeys; + return cmDefinitions::ClosureKeys(this->VarStack.rbegin(), + this->VarStack.rend()); } void PopDefinitions() |