summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-18 17:18:54 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-18 17:24:04 (GMT)
commitfa889c4d2f49ed4b3edc8e7820b4d9bbfeeeb2a3 (patch)
tree045820e534b355afab290b1174d251b56698421f /Source/cmakemain.cxx
parent8211010c3f0d262cd7d300856f34a3af01f766b3 (diff)
downloadCMake-fa889c4d2f49ed4b3edc8e7820b4d9bbfeeeb2a3.zip
CMake-fa889c4d2f49ed4b3edc8e7820b4d9bbfeeeb2a3.tar.gz
CMake-fa889c4d2f49ed4b3edc8e7820b4d9bbfeeeb2a3.tar.bz2
cmakemain: Initialize vector content with iterators directly.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 83ba72f..9e84e68 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -219,11 +219,7 @@ int do_cmake(int ac, char const* const* av)
// the command line args are processed here so that you can do
// -DCMAKE_MODULE_PATH=/some/path and have this value accessible here
- std::vector<std::string> args;
- for(int i =0; i < ac; ++i)
- {
- args.push_back(av[i]);
- }
+ std::vector<std::string> args(av, av + ac);
hcm.SetCacheArgs(args);
std::vector<cmDocumentationEntry> generators;