Make Stripable::Sorter::operator() const
as required by C++17
This commit is contained in:
committed by
Robin Gareus
parent
4e80b8c9c7
commit
5ac2e6b8a8
@@ -97,7 +97,7 @@ class LIBARDOUR_API Stripable : public SessionObject,
|
||||
{
|
||||
bool _mixer_order; // master is last
|
||||
Sorter (bool mixer_order = false) : _mixer_order (mixer_order) {}
|
||||
bool operator() (std::shared_ptr<ARDOUR::Stripable> a, std::shared_ptr<ARDOUR::Stripable> b);
|
||||
bool operator() (std::shared_ptr<ARDOUR::Stripable> a, std::shared_ptr<ARDOUR::Stripable> b) const;
|
||||
};
|
||||
|
||||
/* gui's call this for their own purposes. */
|
||||
|
||||
@@ -129,7 +129,7 @@ Stripable::is_selected() const
|
||||
}
|
||||
|
||||
bool
|
||||
Stripable::Sorter::operator() (std::shared_ptr<ARDOUR::Stripable> a, std::shared_ptr<ARDOUR::Stripable> b)
|
||||
Stripable::Sorter::operator() (std::shared_ptr<ARDOUR::Stripable> a, std::shared_ptr<ARDOUR::Stripable> b) const
|
||||
{
|
||||
const PresentationInfo::Flag a_flag = a->presentation_info().flags ();
|
||||
const PresentationInfo::Flag b_flag = b->presentation_info().flags ();
|
||||
|
||||
Reference in New Issue
Block a user