diff --git a/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp b/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp index 3b952745a4..9e1d7277c9 100644 --- a/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp +++ b/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp @@ -115,7 +115,7 @@ public: private: void valueChanged (Value&) override { sendChangeMessage (true); } - ValueWithDefault* valueWithDefault; + ValueWithDefault* valueWithDefault = nullptr; Value sourceValue; Array mappings; diff --git a/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.cpp b/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.cpp index 549ac4d482..0bc7bc1bbc 100644 --- a/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.cpp +++ b/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.cpp @@ -191,7 +191,7 @@ private: } //============================================================================== - ValueWithDefault* valueWithDefault; + ValueWithDefault* valueWithDefault = nullptr; var varToControl; Value sourceValue; diff --git a/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h b/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h index 1c0c126a2a..894290a68d 100644 --- a/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h +++ b/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h @@ -119,7 +119,7 @@ private: void lookAndFeelChanged() override; //============================================================================== - ValueWithDefault* valueWithDefault; + ValueWithDefault* valueWithDefault = nullptr; int maxHeight = 0; int numHidden = 0; diff --git a/modules/juce_gui_basics/properties/juce_TextPropertyComponent.cpp b/modules/juce_gui_basics/properties/juce_TextPropertyComponent.cpp index 2238ad07c3..8960a64355 100644 --- a/modules/juce_gui_basics/properties/juce_TextPropertyComponent.cpp +++ b/modules/juce_gui_basics/properties/juce_TextPropertyComponent.cpp @@ -143,7 +143,7 @@ public: } private: - ValueWithDefault* valueWithDefault; + ValueWithDefault* valueWithDefault = nullptr; //============================================================================== JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (RemapperValueSourceWithDefault)