13
0

use C++11 auto iterator

This commit is contained in:
Paul Davis 2023-02-06 20:18:40 -07:00
parent 5979647c22
commit 4796a3643d

View File

@ -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;
}
}