diff --git a/modules/juce_core/containers/juce_Variant.cpp b/modules/juce_core/containers/juce_Variant.cpp index 62181c778b..b0f9e9d34f 100644 --- a/modules/juce_core/containers/juce_Variant.cpp +++ b/modules/juce_core/containers/juce_Variant.cpp @@ -708,14 +708,14 @@ bool var::hasProperty (const Identifier& propertyName) const noexcept return false; } -juce::StringArray var::getProperties() const +Array var::getProperties() const { if (auto* o = getDynamicObject()) { - juce::StringArray names; + Array names; for (auto itr : o->getProperties()) - names.add (itr.name.toString()); + names.add (itr.name); return names; } diff --git a/modules/juce_core/containers/juce_Variant.h b/modules/juce_core/containers/juce_Variant.h index be5fa893a6..653cb8db0d 100644 --- a/modules/juce_core/containers/juce_Variant.h +++ b/modules/juce_core/containers/juce_Variant.h @@ -263,7 +263,7 @@ public: /** Returns true if this variant is an object and if it has the given property. */ bool hasProperty (const Identifier& propertyName) const noexcept; /** Returns property names if this variant is an object. */ - juce::StringArray getProperties() const; + Array getProperties() const; /** Invokes a named method call with no arguments. */ var call (const Identifier& method) const;