Skip to content

Commit

Permalink
Make API more jucey
Browse files Browse the repository at this point in the history
  • Loading branch information
FigBug committed Dec 28, 2024
1 parent 09d8ea8 commit eddf488
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions modules/juce_core/containers/juce_Variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,14 +708,14 @@ bool var::hasProperty (const Identifier& propertyName) const noexcept
return false;
}

juce::StringArray var::getProperties() const
Array<Identifier> var::getProperties() const
{
if (auto* o = getDynamicObject())
{
juce::StringArray names;
Array<Identifier> names;

for (auto itr : o->getProperties())
names.add (itr.name.toString());
names.add (itr.name);

return names;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/juce_core/containers/juce_Variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class JUCE_API var
/** 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<Identifier> getProperties() const;

/** Invokes a named method call with no arguments. */
var call (const Identifier& method) const;
Expand Down

0 comments on commit eddf488

Please sign in to comment.