the daily dose of const'ness

This commit is contained in:
Robin Gareus 2017-02-24 12:59:07 +01:00
parent 3780a9526e
commit 89c02f4fd7
2 changed files with 8 additions and 8 deletions

View file

@ -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();
}

View file

@ -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 &);