summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-18 16:01:54 +0100
committerStephen Kelly <steveire@gmail.com>2015-02-06 19:04:09 +0100
commita7fcc148bdfa5e9f2c6901b0de8192f5aa043741 (patch)
tree4a085d16d35f95b9353d68f227f4dc8f49626e9f
parentd46c4f0727acb35963dfda579cd5c9efd63aab01 (diff)
downloadcmake-a7fcc148bdfa5e9f2c6901b0de8192f5aa043741.tar.gz
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 9a2186b582..785d0caaa0 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));
}
}