From 34fe8c46e9eb2ad66fbf31b90e095349bf68ee41 Mon Sep 17 00:00:00 2001 From: Nil Geisweiller Date: Thu, 26 Dec 2024 15:34:32 +0200 Subject: [PATCH] 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. --- libs/ardour/ardour/stripable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/ardour/stripable.h b/libs/ardour/ardour/stripable.h index eb00d637b0..48cb21d6d5 100644 --- a/libs/ardour/ardour/stripable.h +++ b/libs/ardour/ardour/stripable.h @@ -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 a, std::shared_ptr b) const; };