mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-14 05:20:50 -05:00
cmDefinitions: Avoid string copy when setting a definition
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