summaryrefslogtreecommitdiffstats
path: root/Source/cmDefinitions.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-26 13:38:09 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-29 20:49:05 (GMT)
commitca9fa77d5d34a993073cd5256d65f88cd2e1a28f (patch)
treeb5d5b73af80c9081efc38d63e88c1e698f2a5fae /Source/cmDefinitions.cxx
parent78e1454ea09e9c568578e26971d6cd45b7fa39c7 (diff)
downloadCMake-ca9fa77d5d34a993073cd5256d65f88cd2e1a28f.zip
CMake-ca9fa77d5d34a993073cd5256d65f88cd2e1a28f.tar.gz
CMake-ca9fa77d5d34a993073cd5256d65f88cd2e1a28f.tar.bz2
cmDefinitions: Inline GetClosureKeys implementation.
Diffstat (limited to 'Source/cmDefinitions.cxx')
-rw-r--r--Source/cmDefinitions.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/cmDefinitions.cxx b/Source/cmDefinitions.cxx
index a6f46e2..4b0eed4 100644
--- a/Source/cmDefinitions.cxx
+++ b/Source/cmDefinitions.cxx
@@ -123,14 +123,7 @@ std::set<std::string> cmDefinitions::ClosureKeys() const
{
std::set<std::string> defined;
std::set<std::string> undefined;
- this->ClosureKeys(defined, undefined);
- return defined;
-}
-//----------------------------------------------------------------------------
-void cmDefinitions::ClosureKeys(std::set<std::string>& defined,
- std::set<std::string>& undefined) const
-{
cmDefinitions const* up = this;
while (up)
@@ -149,4 +142,5 @@ void cmDefinitions::ClosureKeys(std::set<std::string>& defined,
}
up = up->Up;
}
+ return defined;
}