summaryrefslogtreecommitdiffstats
path: root/Source/cmDefinitions.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-10-24 17:38:32 (GMT)
committerBrad King <brad.king@kitware.com>2014-10-24 17:38:32 (GMT)
commit0c3ddf8b652311ec2a9447a9e6303691841628b4 (patch)
tree79965c9e0285edd13cc17474a89afe817c76f898 /Source/cmDefinitions.h
parent9c4551f274d4d502590c4728aeba112c92c13385 (diff)
parentd1b62185d6b66b27a3ef31b79d4cff1c5126793e (diff)
downloadCMake-3.1.0-rc1.zip
CMake-3.1.0-rc1.tar.gz
CMake-3.1.0-rc1.tar.bz2
Merge branch 'revert-definition-map-lookup' into releasev3.1.0-rc1
Diffstat (limited to 'Source/cmDefinitions.h')
-rw-r--r--Source/cmDefinitions.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmDefinitions.h b/Source/cmDefinitions.h
index 5209a8b..a2f053f 100644
--- a/Source/cmDefinitions.h
+++ b/Source/cmDefinitions.h
@@ -36,11 +36,9 @@ public:
/** Returns the parent scope, if any. */
cmDefinitions* GetParent() const { return this->Up; }
- /** Get the value associated with a key; null if none. */
- const char* Get(const std::string& key) const;
-
- /** Pull a variable from the parent. */
- void Pull(const std::string& key);
+ /** Get the value associated with a key; null if none.
+ Store the result locally if it came from a parent. */
+ const char* Get(const std::string& key);
/** Set (or unset if null) a value associated with a key. */
const char* Set(const std::string& key, const char* value);
@@ -82,7 +80,7 @@ private:
MapType Map;
// Internal query and update methods.
- Def const& GetInternal(const std::string& key) const;
+ Def const& GetInternal(const std::string& key);
Def const& SetInternal(const std::string& key, Def const& def);
// Implementation of Closure() method.