Remove capacity from JsonDocument's constructor

This commit is contained in:
Benoit Blanchon
2023-07-17 18:15:13 +02:00
parent 42b2840009
commit 0f319e7ca4
162 changed files with 438 additions and 500 deletions

View File

@ -8,6 +8,6 @@ struct Stream {};
int main() {
Stream* stream = 0;
JsonDocument doc(1024);
JsonDocument doc;
deserializeJson(doc, stream);
}

View File

@ -7,6 +7,6 @@
// See issue #1498
int main() {
JsonDocument doc(1024);
JsonDocument doc;
doc["dummy"] = 'A';
}

View File

@ -11,6 +11,6 @@
ARDUINOJSON_ASSERT_INTEGER_TYPE_IS_SUPPORTED(long long)
int main() {
JsonDocument doc(1024);
JsonDocument doc;
doc["dummy"].as<long long>();
}

View File

@ -7,6 +7,6 @@
// See issue #1498
int main() {
JsonDocument doc(1024);
JsonDocument doc;
doc["dummy"].as<char>();
}

View File

@ -10,6 +10,6 @@
#endif
int main() {
JsonDocument doc(1024);
JsonDocument doc;
doc["dummy"] = static_cast<long long>(42);
}