Browse Source

Remove the const qualifier on ParameterEnumerationValue (#309)

* Remove the const qualifier on ParameterEnumerationValue

* Also remove const in the ctor of ParameterEnumerationValues
pull/310/head
JP Cimalando GitHub 4 years ago
parent
commit
3c37d4c096
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      distrho/DistrhoPlugin.hpp

+ 2
- 2
distrho/DistrhoPlugin.hpp View File

@@ -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) {}


Loading…
Cancel
Save