Commit ebc94500 authored by Bartosz Kosiorek's avatar Bartosz Kosiorek

cmGlobalGenerator: Optimize Printable() method from GeneratedMakeCommand

parent fdeb364a
......@@ -69,20 +69,7 @@ struct GeneratedMakeCommand
PrimaryCommand.insert(PrimaryCommand.end(), start, end);
}
std::string Printable() const
{
std::size_t size = PrimaryCommand.size();
for (auto&& i : PrimaryCommand) {
size += i.size();
}
std::string buffer;
buffer.reserve(size);
for (auto&& i : PrimaryCommand) {
buffer.append(i);
buffer.append(1, ' ');
}
return buffer;
}
std::string Printable() const { return cmJoin(PrimaryCommand, " "); }
std::vector<std::string> PrimaryCommand;
bool RequiresOutputForward = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment