use C++11 auto iterator
This commit is contained in:
parent
5979647c22
commit
4796a3643d
|
@ -2197,8 +2197,8 @@ ControlList::dump (ostream& o)
|
|||
{
|
||||
/* NOT LOCKED ... for debugging only */
|
||||
|
||||
for (EventList::iterator x = _events.begin (); x != _events.end (); ++x) {
|
||||
o << (*x)->value << " @ " << (*x)->when << endl;
|
||||
for (auto const & e : _events) {
|
||||
o << e->value << " @ " << e->when << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user