summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-18 15:01:54 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-06 18:04:09 (GMT)
commita7fcc148bdfa5e9f2c6901b0de8192f5aa043741 (patch)
tree4a085d16d35f95b9353d68f227f4dc8f49626e9f
parentd46c4f0727acb35963dfda579cd5c9efd63aab01 (diff)
downloadCMake-a7fcc148bdfa5e9f2c6901b0de8192f5aa043741.zip
CMake-a7fcc148bdfa5e9f2c6901b0de8192f5aa043741.tar.gz
CMake-a7fcc148bdfa5e9f2c6901b0de8192f5aa043741.tar.bz2
Convert loop to algorithm.
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 9a2186b..785d0ca 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -2396,10 +2396,7 @@ void cmLocalUnixMakefileGenerator3
std::string outputForExisting =
this->ConvertToOutputForExisting(tgtDir, relRetDir);
std::string prefix = cd_cmd + outputForExisting + " && ";
- std::vector<std::string>::iterator i = commands.begin();
- for (; i != commands.end(); ++i)
- {
- *i = prefix + *i;
- }
+ std::transform(commands.begin(), commands.end(), commands.begin(),
+ std::bind1st(std::plus<std::string>(), prefix));
}
}