Make Stripable::Sorter::operator() const

as required by C++17
This commit is contained in:
Nil Geisweiller
2024-12-26 15:26:58 +02:00
committed by Robin Gareus
parent 4e80b8c9c7
commit 5ac2e6b8a8
2 changed files with 2 additions and 2 deletions

View File

@@ -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. */

View File

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