summaryrefslogtreecommitdiff
path: root/Source/cmLoadCacheCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-15 03:09:43 +0100
committerStephen Kelly <steveire@gmail.com>2015-01-18 15:14:47 +0100
commit92a37f92791f801d378b49fd86f097391facd02e (patch)
treed1fede7d6f9c614391be9f84db6a63d45233517c /Source/cmLoadCacheCommand.cxx
parentaac44e71e6a6c2630f1c1e61b34cf91aa775dc02 (diff)
downloadcmake-92a37f92791f801d378b49fd86f097391facd02e.tar.gz
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 427e29df60..4f6e0c3b09 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());