diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-06-13 10:01:08 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-06-13 10:01:08 (GMT) |
commit | 563205d6f84251dfef9658853e0b9a90af9ced71 (patch) | |
tree | 9d7bef71b6e77e54114d509355f8755cbe2ac60a /Source | |
parent | d24121d62518d4ce8672737d83ef448e8b2a0ae6 (diff) | |
download | CMake-563205d6f84251dfef9658853e0b9a90af9ced71.zip CMake-563205d6f84251dfef9658853e0b9a90af9ced71.tar.gz CMake-563205d6f84251dfef9658853e0b9a90af9ced71.tar.bz2 |
cmDefinitions: Avoid string copy when setting a definition
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmDefinitions.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmDefinitions.cxx b/Source/cmDefinitions.cxx index 5fafaf9..894447c 100644 --- a/Source/cmDefinitions.cxx +++ b/Source/cmDefinitions.cxx @@ -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 |