X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Froute_group_specialized.h;h=242a16c43e471ecc0d72548886d99d552ac72256;hb=f25d9b122046d9ccf81108afc2fb466a32f9cbcc;hp=73b6c74ee70f12f042462db0f4f6336ce681b389;hpb=e0aaed6d65f160c328cb8b56d7c6552ee15d65e2;p=ardour.git diff --git a/libs/ardour/ardour/route_group_specialized.h b/libs/ardour/ardour/route_group_specialized.h index 73b6c74ee7..242a16c43e 100644 --- a/libs/ardour/ardour/route_group_specialized.h +++ b/libs/ardour/ardour/route_group_specialized.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2000-2007 Paul Davis + Copyright (C) 2000-2007 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,17 +25,19 @@ namespace ARDOUR { -template void -RouteGroup::apply (void (Track::*func)(T, void *), T val, void *src) +template void +RouteGroup::apply (void (Track::*func)(T, void *), T val, void* /*src*/) { - for (list::iterator i = routes.begin(); i != routes.end(); i++) { - Track *at; - if ((at = dynamic_cast(*i)) != 0) { - (at->*func)(val, this); + for (RouteList::iterator i = routes->begin(); i != routes->end(); i++) { + boost::shared_ptr at; + + if ((at = boost::dynamic_pointer_cast(*i)) != 0) { + (at.get()->*func)(val, this); } } } - + } /* namespace ARDOUR */ #endif /* __ardour_route_group_specialized_h__ */ +