summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-25 15:01:07 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-06 18:04:09 (GMT)
commit683fafea088c26658283da3bdf05277aaa1a3cee (patch)
tree3605fac6c917dad5220809c5d5b4942434299507 /Source
parent63f584b618b3381ad93c901f691191acd48329a7 (diff)
downloadCMake-683fafea088c26658283da3bdf05277aaa1a3cee.zip
CMake-683fafea088c26658283da3bdf05277aaa1a3cee.tar.gz
CMake-683fafea088c26658283da3bdf05277aaa1a3cee.tar.bz2
Replace a loop with std::transform.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 652e451..875dbbd 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -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())