Use cmAppend to append ranges to std::vector instances

This commit is contained in:
Sebastian Holtermann
2019-05-23 14:49:54 +02:00
parent 999516478d
commit 006229278b
59 changed files with 181 additions and 246 deletions

View File

@@ -27,8 +27,7 @@ bool cmAddTestCommand::InitialPass(std::vector<std::string> const& args,
}
// Collect the command with arguments.
std::vector<std::string> command;
command.insert(command.end(), args.begin() + 1, args.end());
std::vector<std::string> command(args.begin() + 1, args.end());
// Create the test but add a generator only the first time it is
// seen. This preserves behavior from before test generators.