Remove capacity from JsonDocument's constructor

This commit is contained in:
Benoit Blanchon
2023-07-18 09:08:55 +02:00
parent 42b2840009
commit 0f319e7ca4
162 changed files with 438 additions and 500 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ Here is the environment that I used:
Here is a small snippet that reproduces the issue.
```c++
JsonDocument doc(1024);
JsonDocument doc;
DeserializationError error = deserializeJson(doc, "{\"hello\":\"world\"}");
+1 -1
View File
@@ -28,7 +28,7 @@ Here is the environment that I'm using':
Here is a small snippet that demonstrate the problem.
```c++
JsonDocument doc(1024);
JsonDocument doc;
DeserializationError error = deserializeJson(doc, "{\"hello\":\"world\"}");
+2 -2
View File
@@ -484,7 +484,7 @@ jobs:
g++ -x c++ - <<END
#include "${{ steps.amalgamate.outputs.filename }}"
int main() {
JsonDocument doc(300);
JsonDocument doc;
deserializeJson(doc, "{}");
}
END
@@ -518,7 +518,7 @@ jobs:
g++ -x c++ - <<END
#include "${{ steps.amalgamate.outputs.filename }}"
int main() {
ArduinoJson::JsonDocument doc(300);
ArduinoJson::JsonDocument doc;
deserializeJson(doc, "{}");
}
END