summaryrefslogtreecommitdiff
path: root/gtk2_ardour/track_selection.cc
blob: 3e428b1a940bca61f78832131a5495b7637b3e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <algorithm>
#include "track_selection.h"

using namespace std;

list<TimeAxisView*>
TrackSelection::add (list<TimeAxisView*> const & t)
{
	list<TimeAxisView*> added;

	for (TrackSelection::const_iterator i = t.begin(); i != t.end(); ++i) {
		if (find (begin(), end(), *i) == end()) {
			added.push_back (*i);
			push_back (*i);
		}
	}

	return added;
}