DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 3c37d4c096dd4decac225c62ca78a0d7526a18ed
parent d3692aa17f31c09fe4b215ffded150b97e607339
Author: JP Cimalando <jp-dev@inbox.ru>
Date:   Fri, 20 Aug 2021 16:29:25 +0200

Remove the const qualifier on ParameterEnumerationValue (#309)

* Remove the const qualifier on ParameterEnumerationValue

* Also remove const in the ctor of ParameterEnumerationValues
Diffstat:
Mdistrho/DistrhoPlugin.hpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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) {}