cmDefinitions: Make Get method static.

This commit is contained in:
Stephen Kelly 2015-05-01 01:50:45 +02:00
parent a7ce0c7bc0
commit 6c7dad41d9
2 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ class cmDefinitions
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 std::string& key,
static const char* Get(const std::string& key,
std::list<cmDefinitions>::reverse_iterator rbegin,
std::list<cmDefinitions>::reverse_iterator rend);

View File

@ -65,7 +65,7 @@ public:
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());
}