Made JsonNode::type private

This commit is contained in:
Benoit Blanchon
2014-10-09 14:17:09 +02:00
parent b0e12e8852
commit 24c60619d5
10 changed files with 62 additions and 61 deletions

View File

@ -33,19 +33,14 @@ size_t JsonContainer::prettyPrintTo(IndentedPrint& p) const
return writer.bytesWritten();
}
JsonNode* JsonContainer::createNode(JsonNodeType type)
JsonNode* JsonContainer::createNode()
{
if (!_node) return 0;
JsonBuffer* buffer = _node->getContainerBuffer();
if (!buffer) return 0;
return buffer->createNode(type);
}
bool JsonContainer::checkNodeType(JsonNodeType expectedType)
{
return _node && _node->type == expectedType;
return buffer->createNode();
}
bool JsonContainer::operator==(const JsonContainer & other) const