diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-11 10:36:58 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-12 18:08:48 (GMT) |
commit | c57f086a81c487fa88c36a785865d27b81e3cb8d (patch) | |
tree | 85e9eebb0ad99d220650b9b275622ba60d0c2e1b /Source/cmake.cxx | |
parent | 23368c9b83cd62724e94d345e3af940b3cda8762 (diff) | |
download | CMake-c57f086a81c487fa88c36a785865d27b81e3cb8d.zip CMake-c57f086a81c487fa88c36a785865d27b81e3cb8d.tar.gz CMake-c57f086a81c487fa88c36a785865d27b81e3cb8d.tar.bz2 |
cmake: Don't lower-case a string needlessly.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 8e09485..8868ef6 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -243,12 +243,12 @@ void cmake::RenameCommand(const std::string& oldName, { // if the command already exists, free the old one std::string sOldName = cmSystemTools::LowerCase(oldName); - std::string sNewName = cmSystemTools::LowerCase(newName); RegisteredCommandsMap::iterator pos = this->Commands.find(sOldName); if ( pos == this->Commands.end() ) { return; } + std::string sNewName = cmSystemTools::LowerCase(newName); cmCommand* cmd = pos->second; pos = this->Commands.find(sNewName); |