summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-12 19:47:53 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-18 20:36:35 (GMT)
commite6ca1b82744154fa048634abdc353e4118a11979 (patch)
tree4cb15669c8cf56ca1167bb81ca5b2317c0fee838 /Source
parent93a38a2abccf9041fa86a7a6cf3439b1b0480ad1 (diff)
downloadCMake-e6ca1b82744154fa048634abdc353e4118a11979.zip
CMake-e6ca1b82744154fa048634abdc353e4118a11979.tar.gz
CMake-e6ca1b82744154fa048634abdc353e4118a11979.tar.bz2
cmCTest: Convert loop to member insert.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCTest.cxx7
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)