mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Changed JsonArray tests to show the issue
This commit is contained in:
@@ -35,7 +35,7 @@ namespace ArduinoJson
|
||||
content.asLong = value;
|
||||
}
|
||||
|
||||
void operator=(Printable& value)
|
||||
void operator=(const Printable& value)
|
||||
{
|
||||
printToImpl = &printPrintableTo;
|
||||
content.asPrintable = &value;
|
||||
@@ -89,7 +89,7 @@ namespace ArduinoJson
|
||||
return content.asLong;
|
||||
}
|
||||
|
||||
operator Printable&()
|
||||
operator const Printable&()
|
||||
{
|
||||
return *content.asPrintable;
|
||||
}
|
||||
@@ -109,11 +109,11 @@ namespace ArduinoJson
|
||||
private:
|
||||
union Content
|
||||
{
|
||||
bool asBool;
|
||||
double asDouble;
|
||||
long asLong;
|
||||
Printable* asPrintable;
|
||||
const char* asString;
|
||||
bool asBool;
|
||||
double asDouble;
|
||||
long asLong;
|
||||
const Printable* asPrintable;
|
||||
const char* asString;
|
||||
};
|
||||
|
||||
Content content;
|
||||
|
||||
Reference in New Issue
Block a user