Replaced public inheritance by protected and private

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

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;