cmDefinitions: Make Get method static.
This commit is contained in:
parent
a7ce0c7bc0
commit
6c7dad41d9
@ -31,9 +31,9 @@ class cmDefinitions
|
|||||||
public:
|
public:
|
||||||
/** Get the value associated with a key; null if none.
|
/** Get the value associated with a key; null if none.
|
||||||
Store the result locally if it came from a parent. */
|
Store the result locally if it came from a parent. */
|
||||||
const char* Get(const std::string& key,
|
static const char* Get(const std::string& key,
|
||||||
std::list<cmDefinitions>::reverse_iterator rbegin,
|
std::list<cmDefinitions>::reverse_iterator rbegin,
|
||||||
std::list<cmDefinitions>::reverse_iterator rend);
|
std::list<cmDefinitions>::reverse_iterator rend);
|
||||||
|
|
||||||
/** Set (or unset if null) a value associated with a key. */
|
/** Set (or unset if null) a value associated with a key. */
|
||||||
void Set(const std::string& key, const char* value);
|
void Set(const std::string& key, const char* value);
|
||||||
|
@ -65,8 +65,8 @@ public:
|
|||||||
|
|
||||||
const char* GetDefinition(std::string const& name)
|
const char* GetDefinition(std::string const& name)
|
||||||
{
|
{
|
||||||
return this->VarStack.back().Get(name, this->VarStack.rbegin(),
|
return cmDefinitions::Get(name, this->VarStack.rbegin(),
|
||||||
this->VarStack.rend());
|
this->VarStack.rend());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetDefinition(std::string const& name, std::string const& value)
|
void SetDefinition(std::string const& name, std::string const& value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user