Changed BasicJsonDocument's copy-constructor to copy the capacity

This commit is contained in:
Benoit Blanchon
2020-03-02 12:31:36 +01:00
parent c1b3705df1
commit 0853b04589
5 changed files with 71 additions and 36 deletions

View File

@@ -293,6 +293,10 @@ class JsonDocument : public Visitable {
}
protected:
JsonDocument() : _pool(0, 0) {
_data.setNull();
}
JsonDocument(MemoryPool pool) : _pool(pool) {
_data.setNull();
}