diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-15 03:09:43 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 15:14:47 +0100 |
commit | 92a37f92791f801d378b49fd86f097391facd02e (patch) | |
tree | d1fede7d6f9c614391be9f84db6a63d45233517c /Source/cmLoadCacheCommand.cxx | |
parent | aac44e71e6a6c2630f1c1e61b34cf91aa775dc02 (diff) | |
download | cmake-92a37f92791f801d378b49fd86f097391facd02e.tar.gz |
Convert raw loops to set member insert.
Diffstat (limited to 'Source/cmLoadCacheCommand.cxx')
-rw-r--r-- | Source/cmLoadCacheCommand.cxx | 5 |
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()); |