Changeset 10821 for code/branches/cpp11_v2/src/libraries/core/Core.cc
- Timestamp:
- Nov 21, 2015, 7:05:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/Core.cc
r10768 r10821 279 279 280 280 const std::vector<std::string>& modulePaths = ApplicationPaths::getInstance().getModulePaths(); 281 for ( std::vector<std::string>::const_iterator it = modulePaths.begin(); it != modulePaths.end(); ++it)282 { 283 ModuleInstance* module = new ModuleInstance( *it);281 for (const auto & modulePath : modulePaths) 282 { 283 ModuleInstance* module = new ModuleInstance(modulePath); 284 284 this->loadModule(module); 285 285 this->modules_.push_back(module); … … 309 309 void Core::unloadModules() 310 310 { 311 for ( std::list<ModuleInstance*>::iterator it = this->modules_.begin(); it != this->modules_.end(); ++it)312 { 313 ModuleInstance* module = (*it);311 for (auto module : this->modules_) 312 { 313 314 314 this->unloadModule(module); 315 315 delete module;
Note: See TracChangeset
for help on using the changeset viewer.