mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 23:28:32 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user