Remove capacity from JsonDocument's constructor

This commit is contained in:
Benoit Blanchon committed 2023-07-18 09:08:55 +02:00
1 parent 42b2840009
commit 0f319e7ca4
162 files changed
+438 -500

No files matched your search

@@ -8,7 +8,7 @@
#include <catch.hpp>
TEST_CASE("Comments in arrays") {
JsonDocument doc(2048);
JsonDocument doc;
SECTION("Block comments") {
SECTION("Before opening bracket") {
@@ -161,7 +161,7 @@ TEST_CASE("Comments in arrays") {
}
TEST_CASE("Comments in objects") {
JsonDocument doc(2048);
JsonDocument doc;
SECTION("Block comments") {
SECTION("Before opening brace") {
@@ -371,7 +371,7 @@ TEST_CASE("Comments in objects") {
}
TEST_CASE("Comments alone") {
JsonDocument doc(2048);
JsonDocument doc;
SECTION("Just a trailing comment with no line break") {
DeserializationError err = deserializeJson(doc, "// comment");