Replaced public inheritance by protected and private

This commit is contained in:
Benoit Blanchon committed 2014-07-19 14:41:29 +02:00
1 parent b278d7711b
commit e94575b4b8
12 files changed
+58 -55

No files matched your search

+1 -5
View File
@@ -33,16 +33,14 @@ namespace ArduinoJson
return json + token->start;
}
// TODO: should be protected
JsonToken firstChild() const
{
return JsonToken(json, token + 1);
}
// TODO: should be protected
JsonToken nextSibling() const;
bool operator!= (const JsonToken& other)
bool operator!= (const JsonToken& other) const
{
return token != other.token;
}
@@ -52,8 +50,6 @@ namespace ArduinoJson
return JsonToken(0, 0);
}
protected:
bool isValid()
{
return token != 0;