Replace a loop with std::transform.

This commit is contained in:
Stephen Kelly 2015-01-25 16:01:07 +01:00
parent 63f584b618
commit 683fafea08
1 changed files with 4 additions and 5 deletions

View File

@ -2731,11 +2731,10 @@ std::vector<std::string> const& cmake::GetDebugConfigs()
{
// Expand the specified list and convert to upper-case.
cmSystemTools::ExpandListArgument(config_list, this->DebugConfigs);
for(std::vector<std::string>::iterator i = this->DebugConfigs.begin();
i != this->DebugConfigs.end(); ++i)
{
*i = cmSystemTools::UpperCase(*i);
}
std::transform(this->DebugConfigs.begin(),
this->DebugConfigs.end(),
this->DebugConfigs.begin(),
cmSystemTools::UpperCase);
}
// If no configurations were specified, use a default list.
if(this->DebugConfigs.empty())