mirror of
https://github.com/reactos/CMake.git
synced 2024-11-30 23:10:26 +00:00
cmake: Don't lower-case a string needlessly.
This commit is contained in:
parent
23368c9b83
commit
c57f086a81
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user