Changeset 10916 for code/branches/cpp11_v2/src/orxonox/Level.cc
- Timestamp:
- Dec 2, 2015, 11:22:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/Level.cc
r10821 r10916 106 106 void Level::networkCallbackTemplatesChanged() 107 107 { 108 for(const auto & elem: this->networkTemplateNames_)109 { 110 assert(Template::getTemplate( elem));111 Template::getTemplate( elem)->applyOn(this);108 for(const std::string& name : this->networkTemplateNames_) 109 { 110 assert(Template::getTemplate(name)); 111 Template::getTemplate(name)->applyOn(this); 112 112 } 113 113 } … … 135 135 // objects alive when ~Level is called. This is the reason why we cannot directly destroy() the Plugins - instead we need 136 136 // to call destroyLater() to ensure that no instances from this plugin exist anymore. 137 for ( auto & elem: this->plugins_)138 (elem)->destroyLater();137 for (PluginReference* plugin : this->plugins_) 138 plugin->destroyLater(); 139 139 this->plugins_.clear(); 140 140 } … … 173 173 { 174 174 unsigned int i = 0; 175 for ( const auto & elem: this->objects_)175 for (BaseObject* object : this->objects_) 176 176 { 177 177 if (i == index) 178 return (elem);178 return object; 179 179 ++i; 180 180 }
Note: See TracChangeset
for help on using the changeset viewer.