13
0

shave another line from MidiGhostRegion::clear_events().

This commit is contained in:
nick_m 2016-12-23 23:33:13 +11:00
parent 4c12df6cf3
commit 0e8852963e

View File

@ -356,14 +356,12 @@ MidiGhostRegion::add_note (NoteBase* n)
void void
MidiGhostRegion::clear_events() MidiGhostRegion::clear_events()
{ {
EventList::iterator it = events.begin(); _optimization_iterator = events.begin();
while (it != events.end()) { while (_optimization_iterator != events.end()) {
delete (*it).second; delete (*_optimization_iterator).second;
it = events.erase (it); _optimization_iterator = events.erase (_optimization_iterator);
} }
_optimization_iterator = events.end ();
} }
/** Update the x positions of our representation of a parent's note. /** Update the x positions of our representation of a parent's note.