- LinkedListIterator<BTimer> it(timerList);
- for(BTimer *timer = it.current(); timer; it++, timer = it.current()) {
+ TimerList::iterator it;
+ for (it = timerList.begin(); it != timerList.end(); ) {
+ BTimer *timer = *it;
+ ++it; // the timer may be removed from the list, so move ahead now
+ ASSERT(timer != NULL);