From 6164328892c533eb8fa96fe32c46f577a8dea32c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanchon?= Date: Wed, 16 Jul 2014 14:01:04 +0200 Subject: [PATCH] Renamed JsonArray::getLength() into size() to match std::vector --- JsonParser/JsonArray.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/JsonParser/JsonArray.h b/JsonParser/JsonArray.h index e3c7cb15..40104747 100644 --- a/JsonParser/JsonArray.h +++ b/JsonParser/JsonArray.h @@ -28,12 +28,17 @@ namespace ArduinoJson return JsonObjectBase::success() && tokens->type == JSMN_ARRAY; } - int getLength() + int size() { return success() ? tokens[0].size : 0; } JsonValue operator[](int index); + + DEPRECATED int getLength() + { + return size(); + } DEPRECATED JsonArray getArray(int index) {