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
|
// if the command already exists, free the old one
|
||||||
std::string sOldName = cmSystemTools::LowerCase(oldName);
|
std::string sOldName = cmSystemTools::LowerCase(oldName);
|
||||||
std::string sNewName = cmSystemTools::LowerCase(newName);
|
|
||||||
RegisteredCommandsMap::iterator pos = this->Commands.find(sOldName);
|
RegisteredCommandsMap::iterator pos = this->Commands.find(sOldName);
|
||||||
if ( pos == this->Commands.end() )
|
if ( pos == this->Commands.end() )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
std::string sNewName = cmSystemTools::LowerCase(newName);
|
||||||
cmCommand* cmd = pos->second;
|
cmCommand* cmd = pos->second;
|
||||||
|
|
||||||
pos = this->Commands.find(sNewName);
|
pos = this->Commands.find(sNewName);
|
||||||
|
|
Loading…
Reference in New Issue