Removed all friends of JsonValue

This commit is contained in:
Benoit Blanchon
2014-10-25 15:55:58 +02:00
parent fdeedabfd7
commit e748ce32bc
14 changed files with 256 additions and 128 deletions

View File

@@ -12,15 +12,6 @@
namespace ArduinoJson {
class JsonValue : public Internals::JsonNodeWrapper {
friend class JsonArray;
template <typename T>
friend class JsonIterator;
template <typename T>
friend class JsonConstIterator;
friend class JsonBuffer;
friend class JsonObject;
friend class JsonObjectKeyValue;
public:
JsonValue() {}
@@ -48,7 +39,7 @@ class JsonValue : public Internals::JsonNodeWrapper {
return static_cast<T>(*this);
}
private:
explicit JsonValue(Internals::JsonNode *node) : JsonNodeWrapper(node) {}
protected:
JsonValue(Internals::JsonNode *node) : Internals::JsonNodeWrapper(node) {}
};
}