summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-11 10:36:58 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-12 18:08:48 (GMT)
commitc57f086a81c487fa88c36a785865d27b81e3cb8d (patch)
tree85e9eebb0ad99d220650b9b275622ba60d0c2e1b /Source/cmake.cxx
parent23368c9b83cd62724e94d345e3af940b3cda8762 (diff)
downloadCMake-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.cxx2
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);