From 3c37d4c096dd4decac225c62ca78a0d7526a18ed Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Fri, 20 Aug 2021 16:29:52 +0200 Subject: [PATCH] Remove the const qualifier on ParameterEnumerationValue (#309) * Remove the const qualifier on ParameterEnumerationValue * Also remove const in the ctor of ParameterEnumerationValues --- distrho/DistrhoPlugin.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distrho/DistrhoPlugin.hpp b/distrho/DistrhoPlugin.hpp index dff23dcb..b23298f1 100644 --- a/distrho/DistrhoPlugin.hpp +++ b/distrho/DistrhoPlugin.hpp @@ -405,7 +405,7 @@ struct ParameterEnumerationValues { Array of @ParameterEnumerationValue items.@n This pointer must be null or have been allocated on the heap with `new ParameterEnumerationValue[count]`. */ - const ParameterEnumerationValue* values; + ParameterEnumerationValue* values; /** Default constructor, for zero enumeration values. @@ -419,7 +419,7 @@ struct ParameterEnumerationValues { Constructor using custom values.@n The pointer to @values must have been allocated on the heap with `new`. */ - ParameterEnumerationValues(uint32_t c, bool r, const ParameterEnumerationValue* v) noexcept + ParameterEnumerationValues(uint32_t c, bool r, ParameterEnumerationValue* v) noexcept : count(c), restrictedMode(r), values(v) {}