From df89fc9bbaf8131d0fe2062cb117294e1c10305f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 7 May 2020 16:02:08 -0600 Subject: [PATCH] fix definition of templateed foreach_track() methods --- libs/ardour/ardour/session_route.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/ardour/session_route.h b/libs/ardour/ardour/session_route.h index fe5f7ad8c0..6c038cf5e1 100644 --- a/libs/ardour/ardour/session_route.h +++ b/libs/ardour/ardour/session_route.h @@ -85,7 +85,7 @@ Session::foreach_track (void (Track::*method)(A), A arg) for (RouteList::iterator i = r->begin(); i != r->end(); i++) { boost::shared_ptr tr = boost::dynamic_pointer_cast (*i); if (tr) { - (tr->*method) (arg); + (tr.get()->*method) (arg); } } } @@ -98,7 +98,7 @@ Session::foreach_track (void (Track::*method)(A1, A2), A1 arg1, A2 arg2) for (RouteList::iterator i = r->begin(); i != r->end(); i++) { boost::shared_ptr tr = boost::dynamic_pointer_cast (*i); if (tr) { - (tr->*method) (arg1, arg2); + (tr.get()->*method) (arg1, arg2); } } }