Replace a loop with std::transform.
This commit is contained in:
parent
63f584b618
commit
683fafea08
|
@ -2731,11 +2731,10 @@ std::vector<std::string> const& cmake::GetDebugConfigs()
|
||||||
{
|
{
|
||||||
// Expand the specified list and convert to upper-case.
|
// Expand the specified list and convert to upper-case.
|
||||||
cmSystemTools::ExpandListArgument(config_list, this->DebugConfigs);
|
cmSystemTools::ExpandListArgument(config_list, this->DebugConfigs);
|
||||||
for(std::vector<std::string>::iterator i = this->DebugConfigs.begin();
|
std::transform(this->DebugConfigs.begin(),
|
||||||
i != this->DebugConfigs.end(); ++i)
|
this->DebugConfigs.end(),
|
||||||
{
|
this->DebugConfigs.begin(),
|
||||||
*i = cmSystemTools::UpperCase(*i);
|
cmSystemTools::UpperCase);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// If no configurations were specified, use a default list.
|
// If no configurations were specified, use a default list.
|
||||||
if(this->DebugConfigs.empty())
|
if(this->DebugConfigs.empty())
|
||||||
|
|
Loading…
Reference in New Issue