stringapi: Use strings for variable names

Variable names are always generated by CMake and should never be NULL.
This commit is contained in:
Ben Boeckel
2014-02-04 16:06:56 -05:00
committed by Brad King
parent ec97ed7d0c
commit 3742bb0d32
38 changed files with 142 additions and 156 deletions
+4 -4
View File
@@ -35,10 +35,10 @@ public:
/** Get the value associated with a key; null if none.
Store the result locally if it came from a parent. */
const char* Get(const char* key);
const char* Get(const std::string& key);
/** Set (or unset if null) a value associated with a key. */
const char* Set(const char* key, const char* value);
const char* Set(const std::string& key, const char* value);
/** Get the set of all local keys. */
std::set<cmStdString> LocalKeys() const;
@@ -69,8 +69,8 @@ private:
MapType Map;
// Internal query and update methods.
Def const& GetInternal(const char* key);
Def const& SetInternal(const char* key, Def const& def);
Def const& GetInternal(const std::string& key);
Def const& SetInternal(const std::string& key, Def const& def);
// Implementation of Closure() method.
struct ClosureTag {};