summaryrefslogtreecommitdiff
path: root/gtk2_ardour/selection.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-01-05 02:22:58 +0000
committerCarl Hetherington <carl@carlh.net>2010-01-05 02:22:58 +0000
commit5f8f48117298231b053e62b9940ce753e0235906 (patch)
treeda0716c4b7a81ce03568bff1175ef79a23a59f8c /gtk2_ardour/selection.cc
parent14e32ba0758c776b2660f8b86a9192cddaa3de99 (diff)
Fixes to permit drags of multiply-selected automation control points.
git-svn-id: svn://localhost/ardour2/branches/3.0@6450 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r--gtk2_ardour/selection.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc
index 065100a2d8..a7658ed2b9 100644
--- a/gtk2_ardour/selection.cc
+++ b/gtk2_ardour/selection.cc
@@ -833,14 +833,14 @@ Selection::toggle (const vector<AutomationSelectable*>& autos)
}
void
-Selection::toggle (list<Selectable*>& selectables)
+Selection::toggle (list<Selectable*> const & selectables)
{
RegionView* rv;
AutomationSelectable* as;
vector<RegionView*> rvs;
vector<AutomationSelectable*> autos;
- for (std::list<Selectable*>::iterator i = selectables.begin(); i != selectables.end(); ++i) {
+ for (std::list<Selectable*>::const_iterator i = selectables.begin(); i != selectables.end(); ++i) {
if ((rv = dynamic_cast<RegionView*> (*i)) != 0) {
rvs.push_back (rv);
} else if ((as = dynamic_cast<AutomationSelectable*> (*i)) != 0) {
@@ -863,7 +863,7 @@ Selection::toggle (list<Selectable*>& selectables)
}
void
-Selection::set (list<Selectable*>& selectables)
+Selection::set (list<Selectable*> const & selectables)
{
clear_regions();
clear_points ();
@@ -872,14 +872,14 @@ Selection::set (list<Selectable*>& selectables)
void
-Selection::add (list<Selectable*>& selectables)
+Selection::add (list<Selectable*> const & selectables)
{
RegionView* rv;
AutomationSelectable* as;
vector<RegionView*> rvs;
vector<AutomationSelectable*> autos;
- for (std::list<Selectable*>::iterator i = selectables.begin(); i != selectables.end(); ++i) {
+ for (std::list<Selectable*>::const_iterator i = selectables.begin(); i != selectables.end(); ++i) {
if ((rv = dynamic_cast<RegionView*> (*i)) != 0) {
rvs.push_back (rv);
} else if ((as = dynamic_cast<AutomationSelectable*> (*i)) != 0) {