X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fselection.cc;h=a7658ed2b9ab358e08743789bd3ebdeb83305742;hb=0c04eb8d83e53cf34716486ef85bd868c57f4cc1;hp=065100a2d84ba321fa8202ab0895a2dd36bca5b6;hpb=b6f4cdaea27fbf49f924b2684d4c638089314067;p=ardour.git 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& autos) } void -Selection::toggle (list& selectables) +Selection::toggle (list const & selectables) { RegionView* rv; AutomationSelectable* as; vector rvs; vector autos; - for (std::list::iterator i = selectables.begin(); i != selectables.end(); ++i) { + for (std::list::const_iterator i = selectables.begin(); i != selectables.end(); ++i) { if ((rv = dynamic_cast (*i)) != 0) { rvs.push_back (rv); } else if ((as = dynamic_cast (*i)) != 0) { @@ -863,7 +863,7 @@ Selection::toggle (list& selectables) } void -Selection::set (list& selectables) +Selection::set (list const & selectables) { clear_regions(); clear_points (); @@ -872,14 +872,14 @@ Selection::set (list& selectables) void -Selection::add (list& selectables) +Selection::add (list const & selectables) { RegionView* rv; AutomationSelectable* as; vector rvs; vector autos; - for (std::list::iterator i = selectables.begin(); i != selectables.end(); ++i) { + for (std::list::const_iterator i = selectables.begin(); i != selectables.end(); ++i) { if ((rv = dynamic_cast (*i)) != 0) { rvs.push_back (rv); } else if ((as = dynamic_cast (*i)) != 0) {