- Timestamp:
- Jan 17, 2016, 10:29:21 PM (8 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/objects/eventsystem/EventFilter.cc
r9667 r11071 70 70 { 71 71 bool success = false; 72 for ( std::list<EventName*>::const_iterator it = this->names_.begin(); it != this->names_.end(); ++it)72 for (EventName* name : this->names_) 73 73 { 74 if ( (*it)->getName() == event.name_)74 if (name->getName() == event.name_) 75 75 { 76 76 success = true; … … 96 96 { 97 97 unsigned int i = 0; 98 for ( std::list<BaseObject*>::const_iterator it = this->sources_.begin(); it != this->sources_.end(); ++it)98 for (BaseObject* source : this->sources_) 99 99 { 100 100 if (i == index) 101 return (*it);101 return source; 102 102 ++i; 103 103 } 104 return 0;104 return nullptr; 105 105 } 106 106 … … 113 113 { 114 114 unsigned int i = 0; 115 for ( std::list<EventName*>::const_iterator it = this->names_.begin(); it != this->names_.end(); ++it)115 for (EventName* name : this->names_) 116 116 { 117 117 if (i == index) 118 return (*it);118 return name; 119 119 ++i; 120 120 } 121 return 0;121 return nullptr; 122 122 } 123 123 }
Note: See TracChangeset
for help on using the changeset viewer.