diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-18 15:01:54 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-06 18:04:09 (GMT) |
commit | a7fcc148bdfa5e9f2c6901b0de8192f5aa043741 (patch) | |
tree | 4a085d16d35f95b9353d68f227f4dc8f49626e9f | |
parent | d46c4f0727acb35963dfda579cd5c9efd63aab01 (diff) | |
download | CMake-a7fcc148bdfa5e9f2c6901b0de8192f5aa043741.zip CMake-a7fcc148bdfa5e9f2c6901b0de8192f5aa043741.tar.gz CMake-a7fcc148bdfa5e9f2c6901b0de8192f5aa043741.tar.bz2 |
Convert loop to algorithm.
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 7 |
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)); } } |