diff options
author | Florian Jung <flo@windfisch.org> | 2013-08-28 00:48:45 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2013-08-28 00:48:45 +0200 |
commit | 3c1ae69c8e4a679588d0db4886f21e150bae572e (patch) | |
tree | 132edf533fe1fbf2cb5edb9b728bc8cede44a405 /muse2/muse | |
parent | aad3d78d3ec7e4916028059cb7b0023eedbaa095 (diff) |
fixed misuse of undo ctors. perhaps more to follow
Diffstat (limited to 'muse2/muse')
-rw-r--r-- | muse2/muse/song.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/muse2/muse/song.cpp b/muse2/muse/song.cpp index bdd24f8b..b6d866e1 100644 --- a/muse2/muse/song.cpp +++ b/muse2/muse/song.cpp @@ -1829,8 +1829,7 @@ void Song::processMsg(AudioMsg* msg) case SEQM_ADD_EVENT: updateFlags = SC_EVENT_INSERTED; if (addEvent(msg->ev1, (MidiPart*)msg->p2)) { - Event ev; - addUndo(UndoOp(UndoOp::AddEvent, ev, msg->ev1, (Part*)msg->p2, msg->a, msg->b)); + addUndo(UndoOp(UndoOp::AddEvent, msg->ev1, (Part*)msg->p2, msg->a, msg->b)); } else updateFlags = 0; @@ -1843,8 +1842,7 @@ void Song::processMsg(AudioMsg* msg) MidiPart* part = (MidiPart*)msg->p2; if(msg->a) removePortCtrlEvents(event, part, msg->b); - Event e; - addUndo(UndoOp(UndoOp::DeleteEvent, e, event, (Part*)part, msg->a, msg->b)); + addUndo(UndoOp(UndoOp::DeleteEvent, event, (Part*)part, msg->a, msg->b)); deleteEvent(event, part); updateFlags = SC_EVENT_REMOVED; } |