diff options
Diffstat (limited to 'libs/surfaces/osc/osc.cc')
-rw-r--r-- | libs/surfaces/osc/osc.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 4a151d44d0..931a5c1a58 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -29,6 +29,7 @@ #include <fcntl.h> #include <glibmm/miscutils.h> +#include <boost/signals2.hpp> #include <pbd/pthread_utils.h> #include <pbd/file_utils.h> @@ -82,7 +83,7 @@ OSC::OSC (Session& s, uint32_t port) // "Application Hooks" session_loaded (s); - session->Exported.connect (sigc::mem_fun (*this, &OSC::session_exported)); + scoped_connect (session->Exported, boost::bind (&OSC::session_exported, this, _1, _2)); } OSC::~OSC() @@ -572,7 +573,7 @@ OSC::listen_to_route (boost::shared_ptr<Route> route, lo_address addr) */ if (!route_exists) { - route->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &OSC::drop_route), boost::weak_ptr<Route> (route))); + scoped_connect (route->GoingAway, (boost::bind (&OSC::drop_route, this, boost::weak_ptr<Route> (route)))); } } |