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

@@ -31,7 +31,7 @@ inline typename enable_if<!is_base_of<JsonDocument, TDestination>::value,
copyArray(const T* src, size_t len, const TDestination& dst) {
bool ok = true;
for (size_t i = 0; i < len; i++) {
ok &= copyArray(src[i], dst.addElement());
ok &= copyArray(src[i], dst.add());
}
return ok;
}