From 9916aa68703218856e1dcc2d26696bd9c522f1b0 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 22 Mar 2018 15:04:21 +0000 Subject: [PATCH] Minor cleanup in ChoicePropertyComponent --- .../properties/juce_ChoicePropertyComponent.cpp | 4 ++-- .../juce_gui_basics/properties/juce_ChoicePropertyComponent.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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. */