From 9762e29007f4577ce0f8d722d2ddd4a4fde0e49e Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 11 Feb 2019 15:45:14 +0000 Subject: [PATCH] Deleted some var constructors that take a const ReferenceCountedObject* and were resolving to the wrong type --- modules/juce_core/containers/juce_Variant.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/juce_core/containers/juce_Variant.h b/modules/juce_core/containers/juce_Variant.h index 35025de243..a25b9e220e 100644 --- a/modules/juce_core/containers/juce_Variant.h +++ b/modules/juce_core/containers/juce_Variant.h @@ -318,6 +318,10 @@ private: Array* convertToArray(); var (const VariantType&) noexcept; + + // This is needed to prevent the wrong constructor/operator being called + var (const ReferenceCountedObject*) = delete; + var& operator= (const ReferenceCountedObject*) = delete; }; /** Compares the values of two var objects, using the var::equals() comparison. */