Merge topic 'cmDefinitions_avoid_string_copy'

563205d6f8 cmDefinitions: Avoid string copy when setting a definition

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3443
This commit is contained in:
Brad King
2019-06-17 12:05:59 +00:00
committed by Kitware Robot
+1 -2
View File
@@ -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