diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-12 19:47:53 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-18 20:36:35 (GMT) |
commit | e6ca1b82744154fa048634abdc353e4118a11979 (patch) | |
tree | 4cb15669c8cf56ca1167bb81ca5b2317c0fee838 /Source/cmCTest.cxx | |
parent | 93a38a2abccf9041fa86a7a6cf3439b1b0480ad1 (diff) | |
download | CMake-e6ca1b82744154fa048634abdc353e4118a11979.zip CMake-e6ca1b82744154fa048634abdc353e4118a11979.tar.gz CMake-e6ca1b82744154fa048634abdc353e4118a11979.tar.bz2 |
cmCTest: Convert loop to member insert.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index f08b87c..69573ac 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -2256,10 +2256,9 @@ int cmCTest::Run(std::vector<std::string> &args, std::string* output) bool SRArgumentSpecified = false; // copy the command line - for(size_t i=0; i < args.size(); ++i) - { - this->InitialCommandLineArguments.push_back(args[i]); - } + this->InitialCommandLineArguments.insert( + this->InitialCommandLineArguments.end(), + args.begin(), args.end()); // process the command line arguments for(size_t i=1; i < args.size(); ++i) |