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, ...@@ -57,8 +57,7 @@ bool cmDefinitions::HasKey(const std::string& key, StackIter begin,
void cmDefinitions::Set(const std::string& key, const char* value) void cmDefinitions::Set(const std::string& key, const char* value)
{ {
Def def(value); this->Map[key] = Def(value);
this->Map[key] = def;
} }
std::vector<std::string> cmDefinitions::UnusedKeys() const 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