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

@ -10,17 +10,17 @@ using namespace ArduinoJson::Parser;
DEPRECATED JsonObject JsonArray::getHashTable(int index)
{
return (JsonObject) (*this)[index];
return operator[](index);
}
/*
* Returns the token for the value at the specified index
*/
JsonValue JsonArray::getValue(int index)
JsonValue JsonArray::operator[](int index)
{
// sanity check
if (index < 0 || !isArray() || index >= size())
return JsonValue::null();
return null();
// skip first token, it's the whole object
JsonToken runningToken = firstChild();