Moved JsonObject._buffer into the JsonNode's content

This commit is contained in:
Benoit Blanchon
2014-09-27 15:34:34 +02:00
parent a7ff04db0e
commit bcc8cece24
5 changed files with 20 additions and 13 deletions

View File

@ -7,7 +7,11 @@
JsonObject JsonBuffer::createObject()
{
JsonNode* node = createNode(JSON_OBJECT);
return JsonObject(this, node);
if (node)
node->content.asObject.buffer = this;
return JsonObject(node);
}
JsonNode* JsonBuffer::createNode(JsonNodeType type)