summaryrefslogtreecommitdiffstats
path: root/Source/cmLoadCacheCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-15 02:09:43 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-18 14:14:47 (GMT)
commit92a37f92791f801d378b49fd86f097391facd02e (patch)
treed1fede7d6f9c614391be9f84db6a63d45233517c /Source/cmLoadCacheCommand.cxx
parentaac44e71e6a6c2630f1c1e61b34cf91aa775dc02 (diff)
downloadCMake-92a37f92791f801d378b49fd86f097391facd02e.zip
CMake-92a37f92791f801d378b49fd86f097391facd02e.tar.gz
CMake-92a37f92791f801d378b49fd86f097391facd02e.tar.bz2
Convert raw loops to set member insert.
Diffstat (limited to 'Source/cmLoadCacheCommand.cxx')
-rw-r--r--Source/cmLoadCacheCommand.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmLoadCacheCommand.cxx b/Source/cmLoadCacheCommand.cxx
index 427e29d..4f6e0c3 100644
--- a/Source/cmLoadCacheCommand.cxx
+++ b/Source/cmLoadCacheCommand.cxx
@@ -110,10 +110,7 @@ bool cmLoadCacheCommand::ReadWithPrefix(std::vector<std::string> const& args)
// Prepare the table of variables to read.
this->Prefix = args[2];
- for(unsigned int i=3; i < args.size(); ++i)
- {
- this->VariablesToRead.insert(args[i]);
- }
+ this->VariablesToRead.insert(args.begin() + 3, args.end());
// Read the cache file.
cmsys::ifstream fin(cacheFile.c_str());