summaryrefslogtreecommitdiff
path: root/libs/ardour/session_handle.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/ardour/session_handle.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/ardour/session_handle.cc')
-rw-r--r--libs/ardour/session_handle.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/session_handle.cc b/libs/ardour/session_handle.cc
index 03671cfa68..f1f6147960 100644
--- a/libs/ardour/session_handle.cc
+++ b/libs/ardour/session_handle.cc
@@ -32,7 +32,7 @@ SessionHandlePtr::SessionHandlePtr (Session* s)
: _session (s)
{
if (_session) {
- _session_connections.add_connection (_session->GoingAway.connect (boost::bind (&SessionHandlePtr::session_going_away, this)));
+ _session->GoingAway.connect (_session_connections, boost::bind (&SessionHandlePtr::session_going_away, this));
}
}
@@ -47,7 +47,7 @@ SessionHandlePtr::set_session (Session* s)
if (s) {
_session = s;
- _session_connections.add_connection (_session->GoingAway.connect (boost::bind (&SessionHandlePtr::session_going_away, this)));
+ _session->GoingAway.connect (_session_connections, boost::bind (&SessionHandlePtr::session_going_away, this));
}
}
@@ -63,7 +63,7 @@ SessionHandlePtr::session_going_away ()
SessionHandleRef::SessionHandleRef (Session& s)
: _session (s)
{
- scoped_connect (_session.GoingAway, boost::bind (&SessionHandleRef::session_going_away, this));
+ _session.GoingAway.connect (*this, boost::bind (&SessionHandleRef::session_going_away, this));
}
void