summaryrefslogtreecommitdiffstats
path: root/src/server/events/Undo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/events/Undo.cpp')
-rw-r--r--src/server/events/Undo.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/server/events/Undo.cpp b/src/server/events/Undo.cpp
index 3a3bdbe2..0741e60d 100644
--- a/src/server/events/Undo.cpp
+++ b/src/server/events/Undo.cpp
@@ -27,24 +27,24 @@ namespace ingen {
namespace server {
namespace events {
-Undo::Undo(Engine& engine,
- SPtr<Interface> client,
- SampleCount timestamp,
- const ingen::Undo& msg)
+Undo::Undo(Engine& engine,
+ const SPtr<Interface>& client,
+ SampleCount timestamp,
+ const ingen::Undo& msg)
: Event(engine, client, msg.seq, timestamp)
, _is_redo(false)
{}
-Undo::Undo(Engine& engine,
- SPtr<Interface> client,
- SampleCount timestamp,
- const ingen::Redo& msg)
+Undo::Undo(Engine& engine,
+ const SPtr<Interface>& client,
+ SampleCount timestamp,
+ const ingen::Redo& msg)
: Event(engine, client, msg.seq, timestamp)
, _is_redo(true)
{}
bool
-Undo::pre_process(PreProcessContext& ctx)
+Undo::pre_process(PreProcessContext&)
{
const UPtr<UndoStack>& stack = _is_redo ? _engine.redo_stack() : _engine.undo_stack();
const Event::Mode mode = _is_redo ? Event::Mode::REDO : Event::Mode::UNDO;