Reduced usages of EscapedString

This commit is contained in:
Benoit Blanchon
2014-08-01 15:22:30 +02:00
parent 1a01800782
commit 7c99d4d63d
6 changed files with 20 additions and 25 deletions

View File

@ -44,7 +44,7 @@ namespace ArduinoJson
void operator=(const char* value)
{
printToImpl = &printStringTo;
content.asString.set(value);
content.asString = value;
}
void operator=(double value)
@ -108,11 +108,11 @@ namespace ArduinoJson
private:
union Content
{
bool asBool;
long asLong;
Printable* asPrintable;
Internals::EscapedString asString;
double asDouble;
bool asBool;
double asDouble;
long asLong;
Printable* asPrintable;
const char* asString;
};
Content content;