- Timestamp:
- Nov 21, 2015, 7:05:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/objects/eventsystem/EventFilter.cc
r10768 r10821 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 (const auto & elem : this->sources_) 99 99 { 100 100 if (i == index) 101 return ( *it);101 return (elem); 102 102 ++i; 103 103 } … … 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 (const auto & elem : this->names_) 116 116 { 117 117 if (i == index) 118 return ( *it);118 return (elem); 119 119 ++i; 120 120 }
Note: See TracChangeset
for help on using the changeset viewer.