summaryrefslogtreecommitdiff
path: root/libs/pbd/undo.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-12-19 20:26:31 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-12-19 20:26:31 +0000
commitaae367b63c9b619db1e40f27dc334c6987219481 (patch)
tree142f6ffed6bb749e24a06343587cad6b966888bd /libs/pbd/undo.cc
parent67460c2af45d0455e64623572480c064445c2e5b (diff)
use new syntax for connecting to backend signals that enforces explicit connection scope, plus a few other related matters
git-svn-id: svn://localhost/ardour2/branches/3.0@6376 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/undo.cc')
-rw-r--r--libs/pbd/undo.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/pbd/undo.cc b/libs/pbd/undo.cc
index 78c16291b7..d3f01d5ada 100644
--- a/libs/pbd/undo.cc
+++ b/libs/pbd/undo.cc
@@ -82,7 +82,7 @@ UndoTransaction::add_command (Command *const action)
so there is no need to manage this connection.
*/
- scoped_connect (action->GoingAway, boost::bind (&command_death, this, action));
+ action->GoingAway.connect (*this, boost::bind (&command_death, this, action));
actions.push_back (action);
}
@@ -185,7 +185,7 @@ UndoHistory::add (UndoTransaction* const ut)
{
uint32_t current_depth = UndoList.size();
- scoped_connect (ut->GoingAway, boost::bind (&UndoHistory::remove, this, ut));
+ ut->GoingAway.connect (*this, boost::bind (&UndoHistory::remove, this, ut));
/* if the current undo history is larger than or equal to the currently
requested depth, then pop off at least 1 element to make space