From df7a3cc30c9be7528e5d76148d32c2dc2eed2cf3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 22 Dec 2009 01:13:22 +0000 Subject: [PATCH] Fix compile. git-svn-id: svn://localhost/ardour2/branches/3.0@6386 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_group.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk2_ardour/port_group.cc b/gtk2_ardour/port_group.cc index 9f5b73c68d..979d993a99 100644 --- a/gtk2_ardour/port_group.cc +++ b/gtk2_ardour/port_group.cc @@ -221,18 +221,18 @@ PortGroup::remove_duplicates () for (BundleList::iterator j = _bundles.begin(); j != _bundles.end(); ++j) { - if (j->bundle->nchannels() > i->bundle->nchannels()) { + if ((*j)->bundle->nchannels() > (*i)->bundle->nchannels()) { /* this bundle is larger */ uint32_t k = 0; - while (k < i->bundle->nchannels()) { + while (k < (*i)->bundle->nchannels()) { /* see if this channel on *i has an equivalent on *j */ uint32_t l = 0; - while (l < j->bundle->nchannels() && i->bundle->channel_ports (k) != j->bundle->channel_ports (l)) { + while (l < (*j)->bundle->nchannels() && (*i)->bundle->channel_ports (k) != (*j)->bundle->channel_ports (l)) { ++l; } - if (l == j->bundle->nchannels()) { + if (l == (*j)->bundle->nchannels()) { /* it does not */ break; } @@ -240,7 +240,7 @@ PortGroup::remove_duplicates () ++k; } - if (k == i->bundle->nchannels ()) { + if (k == (*i)->bundle->nchannels ()) { /* all channels on *i are represented by the larger bundle *j, so remove *i */ remove = true; break;