diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-12 00:44:41 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-12 18:09:47 (GMT) |
commit | 57dd094eded03a94402b6eecf7027325bd7b5136 (patch) | |
tree | c0690faf3bb1a2772344502e9ca8934fa625c53a /Source/cmake.cxx | |
parent | 6deb43e6c836a61536c3d6e36ca16b51013e9134 (diff) | |
download | CMake-57dd094eded03a94402b6eecf7027325bd7b5136.zip CMake-57dd094eded03a94402b6eecf7027325bd7b5136.tar.gz CMake-57dd094eded03a94402b6eecf7027325bd7b5136.tar.bz2 |
Use vector, not list for cmCommand storage.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index f624214..1d067a5 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1804,11 +1804,11 @@ const char* cmake::GetCacheDefinition(const std::string& name) const void cmake::AddDefaultCommands() { - std::list<cmCommand*> commands; + std::vector<cmCommand*> commands; GetBootstrapCommands1(commands); GetBootstrapCommands2(commands); GetPredefinedCommands(commands); - for(std::list<cmCommand*>::iterator i = commands.begin(); + for(std::vector<cmCommand*>::iterator i = commands.begin(); i != commands.end(); ++i) { this->AddCommand(*i); |