summaryrefslogtreecommitdiff
path: root/libs/ardour/session_command.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/session_command.cc')
-rw-r--r--libs/ardour/session_command.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/session_command.cc b/libs/ardour/session_command.cc
index 4d733264fb..828af69901 100644
--- a/libs/ardour/session_command.cc
+++ b/libs/ardour/session_command.cc
@@ -43,7 +43,7 @@ using namespace ARDOUR;
#include "i18n.h"
-void Session::register_with_memento_command_factory(PBD::ID id, PBD::StatefulThingWithGoingAway *ptr)
+void Session::register_with_memento_command_factory(PBD::ID id, PBD::StatefulDestructible *ptr)
{
registry[id] = ptr;
}
@@ -114,8 +114,8 @@ Session::memento_command_factory(XMLNode *n)
if (i != automation_lists.end()) {
return new MementoCommand<AutomationList>(*i->second, before, after);
}
- } else if (registry.count(id)) { // For Editor and AutomationLine which are off-limits here
- return new MementoCommand<PBD::StatefulThingWithGoingAway>(*registry[id], before, after);
+ } else if (registry.count(id)) { // For Editor and AutomationLine which are off-limits herea
+ return new MementoCommand<PBD::StatefulDestructible>(*registry[id], before, after);
}
/* we failed */