Commit 2c2c5753 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'cmDefinitions_avoid_string_copy'

563205d6 cmDefinitions: Avoid string copy when setting a definition
Acked-by: Kitware Robot's avatarKitware Robot <>
Merge-request: !3443
parents 24916ce8 563205d6
Pipeline #139268 passed with stage
in 0 seconds
......@@ -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