mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-01 04:03:24 +03:00
cmDefinitions: Avoid string copy when setting a definition
This commit is contained in:
1 parent
d24121d625
commit
563205d6f8
1 file changed
+1
-2
@@ -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