Removed JsonValue::null(), moved the instance to JsonObjectBase

This commit is contained in:
Benoit Blanchon
2014-08-02 15:55:46 +02:00
parent 65e8b6d405
commit 5cc06180e6
5 changed files with 33 additions and 15 deletions

View File

@ -100,9 +100,10 @@ namespace ArduinoJson
return printToImpl(content, p);
}
static JsonValue& null()
void reset()
{
return nullInstance;
content.asDouble = 0;
printToImpl = printStringTo;
}
private:
@ -129,8 +130,6 @@ namespace ArduinoJson
{
return p.print(c.asDouble, DIGITS);
}
static JsonValue nullInstance;
};
}
}