Convert loop to algorithm.

This commit is contained in:
Stephen Kelly 2015-01-18 16:01:54 +01:00
parent d46c4f0727
commit a7fcc148bd
1 changed files with 2 additions and 5 deletions

View File

@ -2396,10 +2396,7 @@ void cmLocalUnixMakefileGenerator3
std::string outputForExisting = std::string outputForExisting =
this->ConvertToOutputForExisting(tgtDir, relRetDir); this->ConvertToOutputForExisting(tgtDir, relRetDir);
std::string prefix = cd_cmd + outputForExisting + " && "; std::string prefix = cd_cmd + outputForExisting + " && ";
std::vector<std::string>::iterator i = commands.begin(); std::transform(commands.begin(), commands.end(), commands.begin(),
for (; i != commands.end(); ++i) std::bind1st(std::plus<std::string>(), prefix));
{
*i = prefix + *i;
}
} }
} }