no reason for 2 template types in CoreSelection::select_adjacent_stripable()
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 24 Aug 2018 22:22:56 +0000 (18:22 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 24 Aug 2018 22:26:01 +0000 (18:26 -0400)
libs/ardour/ardour/selection.h
libs/ardour/selection.cc

index 0c9493139a5bec0f732394868560424d7b340bf2..36f2d48b23162d74a0286fd69e066003fb43ca3a 100644 (file)
@@ -116,7 +116,7 @@ class LIBARDOUR_API CoreSelection : public PBD::Stateful {
 
        void send_selection_change ();
 
-       template<typename IterTypeForward, typename IterTypeCore>
+       template<typename IterTypeCore>
                void select_adjacent_stripable (bool mixer_order, bool routes_only,
                                                IterTypeCore (StripableList::*begin_method)(),
                                                IterTypeCore (StripableList::*end_method)());
index 5bd186510afbff5876be496adedbbfd4816b76d3..ac83429d6207bb260872362b3d4296a8a452d8af 100644 (file)
@@ -51,7 +51,7 @@ CoreSelection::~CoreSelection ()
 {
 }
 
-template<typename IterTypeForward, typename IterTypeCore>
+template<typename IterTypeCore>
 void
 CoreSelection::select_adjacent_stripable (bool mixer_order, bool routes_only,
                                           IterTypeCore (StripableList::*begin_method)(),
@@ -65,7 +65,7 @@ CoreSelection::select_adjacent_stripable (bool mixer_order, bool routes_only,
                session.get_stripables (stripables);
                stripables.sort (ARDOUR::Stripable::Sorter (mixer_order));
 
-               for (IterTypeForward s = (stripables.*begin_method)(); s != (stripables.*end_method)(); ++s) {
+               for (StripableList::iterator s = stripables.begin(); s != stripables.end(); ++s) {
                        if (select_stripable_and_maybe_group (*s, true, routes_only, 0)) {
                                break;
                        }