mirror of
https://github.com/reactos/CMake.git
synced 2025-03-05 10:27:06 +00:00
Convert loop to algorithm.
This commit is contained in:
parent
d46c4f0727
commit
a7fcc148bd
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user