forked from bblanchon/ArduinoJson
Cleaned JsonNodeWrapper
This commit is contained in:
@ -6,21 +6,17 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../ForwardDeclarations.hpp"
|
|
||||||
#include "JsonNode.hpp"
|
#include "JsonNode.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
namespace Internals {
|
namespace Internals {
|
||||||
|
|
||||||
class JsonNodeWrapper {
|
class JsonNodeWrapper {
|
||||||
friend class JsonValue;
|
protected:
|
||||||
|
|
||||||
public:
|
|
||||||
JsonNodeWrapper() : _node(0) {}
|
JsonNodeWrapper() : _node(0) {}
|
||||||
|
|
||||||
explicit JsonNodeWrapper(JsonNode *node) : _node(node) {}
|
explicit JsonNodeWrapper(JsonNode *node) : _node(node) {}
|
||||||
|
|
||||||
protected:
|
|
||||||
void duplicate(const JsonNodeWrapper &other) {
|
void duplicate(const JsonNodeWrapper &other) {
|
||||||
if (!_node) {
|
if (!_node) {
|
||||||
_node = other._node;
|
_node = other._node;
|
||||||
|
Reference in New Issue
Block a user