From 0db0d8510861f05bdd713b07062064bc8640f9e1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 24 Aug 2018 18:22:56 -0400 Subject: no reason for 2 template types in CoreSelection::select_adjacent_stripable() --- libs/ardour/ardour/selection.h | 2 +- libs/ardour/selection.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/ardour/selection.h b/libs/ardour/ardour/selection.h index 0c9493139a..36f2d48b23 100644 --- a/libs/ardour/ardour/selection.h +++ b/libs/ardour/ardour/selection.h @@ -116,7 +116,7 @@ class LIBARDOUR_API CoreSelection : public PBD::Stateful { void send_selection_change (); - template + template void select_adjacent_stripable (bool mixer_order, bool routes_only, IterTypeCore (StripableList::*begin_method)(), IterTypeCore (StripableList::*end_method)()); diff --git a/libs/ardour/selection.cc b/libs/ardour/selection.cc index 5bd186510a..ac83429d62 100644 --- a/libs/ardour/selection.cc +++ b/libs/ardour/selection.cc @@ -51,7 +51,7 @@ CoreSelection::~CoreSelection () { } -template +template 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; } -- cgit v1.2.3