1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Make API more jucey

This commit is contained in:
Roland Rabien 2024-12-28 08:32:57 -08:00
parent 09d8ea8864
commit eddf488258
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}

View file

@ -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<Identifier> getProperties() const;
/** Invokes a named method call with no arguments. */
var call (const Identifier& method) const;