Merged nestedTokenCount() and nextSibling()

This commit is contained in:
Benoit Blanchon
2014-07-18 16:18:03 +02:00
parent 5d2ffc49fd
commit 79953730fc
4 changed files with 14 additions and 12 deletions

View File

@ -32,10 +32,7 @@ namespace ArduinoJson
return JsonToken(token + 1);
}
JsonToken nextSibling() const
{
return JsonToken(token + 1 + nestedTokenCount());
}
JsonToken nextSibling() const;
bool operator!= (const JsonToken& other)
{
@ -79,9 +76,6 @@ namespace ArduinoJson
private:
jsmntok_t* token;
int nestedTokenCount() const;
};
}
}