mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 04:22:18 +02:00
Made JsonNode::type private
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user