diff options
author | Robin Gareus <robin@gareus.org> | 2017-02-24 12:59:07 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-24 16:10:14 +0100 |
commit | 89c02f4fd7718935391b8fb292bb1b4f3034635e (patch) | |
tree | 34093028c9f09f3e2c103df470226819e25222ba /gtk2_ardour | |
parent | 3780a9526e3eeafbde056df8038a4d9cda37216e (diff) |
the daily dose of const'ness
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/selection.cc | 8 | ||||
-rw-r--r-- | gtk2_ardour/selection.h | 8 |
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 &); |