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
MidiGhostRegion::clear_events()
{
EventList::iterator it = events.begin();
_optimization_iterator = events.begin();
while (it != events.end()) {
delete (*it).second;
it = events.erase (it);
while (_optimization_iterator != events.end()) {
delete (*_optimization_iterator).second;
_optimization_iterator = events.erase (_optimization_iterator);
}
_optimization_iterator = events.end ();
}
/** Update the x positions of our representation of a parent's note.