shave another line from MidiGhostRegion::clear_events().
This commit is contained in:
parent
4c12df6cf3
commit
0e8852963e
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user