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:
committed by
Robin Gareus
parent
5ac2e6b8a8
commit
34fe8c46e9
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user