Commit 563205d6 authored by Sebastian Holtermann's avatar Sebastian Holtermann

cmDefinitions: Avoid string copy when setting a definition

parent d24121d6
......@@ -57,8 +57,7 @@ bool cmDefinitions::HasKey(const std::string& key, StackIter begin,
void cmDefinitions::Set(const std::string& key, const char* value)
Def def(value);
this->Map[key] = def;
this->Map[key] = Def(value);
std::vector<std::string> cmDefinitions::UnusedKeys() const
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment