Added JsonArray::clear() (fixes #1597)

This commit is contained in:
Benoit Blanchon
2021-06-26 11:23:40 +02:00
parent 14639f129e
commit a6fc9311b4
6 changed files with 59 additions and 0 deletions

View File

@ -161,6 +161,12 @@ class ArrayRef : public ArrayRefBase<CollectionData>,
_data->removeElement(index);
}
void clear() const {
if (!_data)
return;
_data->clear();
}
private:
MemoryPool* _pool;
};