Browse Source

Minor cleanup in ChoicePropertyComponent

tags/2021-05-28
ed 7 years ago
parent
commit
9916aa6870
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp
  2. +2
    -2
      modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.h

+ 2
- 2
modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp View File

@@ -155,7 +155,7 @@ ChoicePropertyComponent::ChoicePropertyComponent (const Value& valueToControl,
correspondingValues))); correspondingValues)));
} }
ChoicePropertyComponent::ChoicePropertyComponent (ValueWithDefault valueToControl,
ChoicePropertyComponent::ChoicePropertyComponent (const ValueWithDefault& valueToControl,
const String& name, const String& name,
const StringArray& choiceList, const StringArray& choiceList,
const Array<var>& correspondingValues) const Array<var>& correspondingValues)
@@ -167,7 +167,7 @@ ChoicePropertyComponent::ChoicePropertyComponent (ValueWithDefault valueToContro
correspondingValues))); correspondingValues)));
} }
ChoicePropertyComponent::ChoicePropertyComponent (ValueWithDefault valueToControl,
ChoicePropertyComponent::ChoicePropertyComponent (const ValueWithDefault& valueToControl,
const String& name) const String& name)
: PropertyComponent (name), : PropertyComponent (name),
choices ({ "Enabled", "Disabled" }) choices ({ "Enabled", "Disabled" })


+ 2
- 2
modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.h View File

@@ -88,7 +88,7 @@ public:
as the choices array as the choices array
*/ */
ChoicePropertyComponent (ValueWithDefault valueToControl,
ChoicePropertyComponent (const ValueWithDefault& valueToControl,
const String& propertyName, const String& propertyName,
const StringArray& choices, const StringArray& choices,
const Array<var>& correspondingValues); const Array<var>& correspondingValues);
@@ -98,7 +98,7 @@ public:
This is useful for simple on/off choices that also need a default value. This is useful for simple on/off choices that also need a default value.
*/ */
ChoicePropertyComponent (ValueWithDefault valueToControl,
ChoicePropertyComponent (const ValueWithDefault& valueToControl,
const String& propertyName); const String& propertyName);
/** Destructor. */ /** Destructor. */


Loading…
Cancel
Save