summaryrefslogtreecommitdiff
path: root/muse2/muse
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2013-08-28 00:48:45 +0200
committerFlorian Jung <flo@windfisch.org>2013-08-28 00:48:45 +0200
commit3c1ae69c8e4a679588d0db4886f21e150bae572e (patch)
tree132edf533fe1fbf2cb5edb9b728bc8cede44a405 /muse2/muse
parentaad3d78d3ec7e4916028059cb7b0023eedbaa095 (diff)
fixed misuse of undo ctors. perhaps more to follow
Diffstat (limited to 'muse2/muse')
-rw-r--r--muse2/muse/song.cpp6
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;
}