diff --git a/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp b/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp index 22fa24c94f..b2dada8f99 100644 --- a/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp +++ b/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp @@ -155,7 +155,7 @@ ChoicePropertyComponent::ChoicePropertyComponent (const Value& valueToControl, correspondingValues))); } -ChoicePropertyComponent::ChoicePropertyComponent (ValueWithDefault valueToControl, +ChoicePropertyComponent::ChoicePropertyComponent (const ValueWithDefault& valueToControl, const String& name, const StringArray& choiceList, const Array& correspondingValues) @@ -167,7 +167,7 @@ ChoicePropertyComponent::ChoicePropertyComponent (ValueWithDefault valueToContro correspondingValues))); } -ChoicePropertyComponent::ChoicePropertyComponent (ValueWithDefault valueToControl, +ChoicePropertyComponent::ChoicePropertyComponent (const ValueWithDefault& valueToControl, const String& name) : PropertyComponent (name), choices ({ "Enabled", "Disabled" }) diff --git a/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.h b/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.h index 6cc0c7706c..835bd95ff3 100644 --- a/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.h +++ b/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.h @@ -88,7 +88,7 @@ public: as the choices array */ - ChoicePropertyComponent (ValueWithDefault valueToControl, + ChoicePropertyComponent (const ValueWithDefault& valueToControl, const String& propertyName, const StringArray& choices, const Array& correspondingValues); @@ -98,7 +98,7 @@ public: This is useful for simple on/off choices that also need a default value. */ - ChoicePropertyComponent (ValueWithDefault valueToControl, + ChoicePropertyComponent (const ValueWithDefault& valueToControl, const String& propertyName); /** Destructor. */