955d731fa6
git-svn-id: svn://localhost/ardour2/branches/3.0@5236 d708f5d6-7413-0410-9779-e7cbd77b26cf
20 lines
362 B
C++
Executable File
20 lines
362 B
C++
Executable File
#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;
|
|
}
|