Rename addElement() to add()

This commit is contained in:
Benoit Blanchon
2022-07-06 10:02:29 +02:00
parent 04872b6db8
commit 758580bfb6
11 changed files with 32 additions and 27 deletions

View File

@@ -165,10 +165,12 @@ class ElementProxy : public VariantOperators<ElementProxy<TArray> >,
return getOrAddUpstreamElement().getOrAddMember(key);
}
VariantRef addElement() const {
return getOrAddUpstreamElement().addElement();
VariantRef add() const {
return getOrAddUpstreamElement().add();
}
using ArrayShortcuts<ElementProxy<TArray> >::add;
VariantRef getElement(size_t index) const {
return getOrAddUpstreamElement().getElement(index);
}