Make Stripable::Sorter::_mixer_order const

This is not required by C++17, but it is rather clear that this field should
not be changed after initialization.
This commit is contained in:
Nil Geisweiller 2024-12-26 15:34:32 +02:00 committed by Robin Gareus
parent 5ac2e6b8a8
commit 34fe8c46e9
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -95,7 +95,7 @@ class LIBARDOUR_API Stripable : public SessionObject,
struct LIBARDOUR_API Sorter
{
bool _mixer_order; // master is last
const 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) const;
};