summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/selection.cc8
-rw-r--r--gtk2_ardour/selection.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc
index 6ed7a10434..be22b8737a 100644
--- a/gtk2_ardour/selection.cc
+++ b/gtk2_ardour/selection.cc
@@ -1011,25 +1011,25 @@ Selection::set (boost::shared_ptr<Evoral::ControlList> ac)
}
bool
-Selection::selected (ArdourMarker* m)
+Selection::selected (ArdourMarker* m) const
{
return find (markers.begin(), markers.end(), m) != markers.end();
}
bool
-Selection::selected (TimeAxisView* tv)
+Selection::selected (TimeAxisView* tv) const
{
return tv->selected ();
}
bool
-Selection::selected (RegionView* rv)
+Selection::selected (RegionView* rv) const
{
return find (regions.begin(), regions.end(), rv) != regions.end();
}
bool
-Selection::selected (ControlPoint* cp)
+Selection::selected (ControlPoint* cp) const
{
return find (points.begin(), points.end(), cp) != points.end();
}
diff --git a/gtk2_ardour/selection.h b/gtk2_ardour/selection.h
index daa81ab1d6..959690b95d 100644
--- a/gtk2_ardour/selection.h
+++ b/gtk2_ardour/selection.h
@@ -113,10 +113,10 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
void dump_region_layers();
- bool selected (TimeAxisView*);
- bool selected (RegionView*);
- bool selected (ArdourMarker*);
- bool selected (ControlPoint*);
+ bool selected (TimeAxisView*) const;
+ bool selected (RegionView*) const;
+ bool selected (ArdourMarker*) const;
+ bool selected (ControlPoint*) const;
void set (std::list<Selectable*> const &);
void add (std::list<Selectable*> const &);