Changeset 11071 for code/trunk/src/libraries/core/singleton/ScopeManager.cc
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/singleton/ScopeManager.cc
r10542 r11071 38 38 namespace orxonox 39 39 { 40 ScopeManager* ScopeManager::singletonPtr_s = 0;40 ScopeManager* ScopeManager::singletonPtr_s = nullptr; 41 41 42 42 void ScopeManager::addScope(ScopeID::Value scope) … … 73 73 void ScopeManager::activateListenersForScope(ScopeID::Value scope) 74 74 { 75 for ( std::set<ScopeListener*>::iterator it = this->listeners_[scope].begin(); it != this->listeners_[scope].end(); ++it)76 this->activateListener( *it);75 for (ScopeListener* listener : this->listeners_[scope]) 76 this->activateListener(listener); 77 77 } 78 78 79 79 void ScopeManager::deactivateListenersForScope(ScopeID::Value scope) 80 80 { 81 for ( std::set<ScopeListener*>::iterator it = this->listeners_[scope].begin(); it != this->listeners_[scope].end(); ++it)82 this->deactivateListener( *it);81 for (ScopeListener* listener : this->listeners_[scope]) 82 this->deactivateListener(listener); 83 83 } 84 84
Note: See TracChangeset
for help on using the changeset viewer.