Fixed compilation error with old GCC version (like the one in Arduino 1.0.6)

This commit is contained in:
Benoit Blanchon
2014-11-07 12:12:58 +01:00
parent 8c4c3d8fda
commit 93397880ca
2 changed files with 3 additions and 2 deletions

View File

@ -80,7 +80,8 @@ class JsonArray : public Internals::JsonPrintable<JsonArray>,
private: private:
// Create an empty JsonArray attached to the specified JsonBuffer. // Create an empty JsonArray attached to the specified JsonBuffer.
explicit JsonArray(JsonBuffer *buffer) : List(buffer) {} explicit JsonArray(JsonBuffer *buffer)
: Internals::List<JsonVariant>(buffer) {}
// The instance returned by JsonArray::invalid() // The instance returned by JsonArray::invalid()
static JsonArray _invalid; static JsonArray _invalid;

View File

@ -92,7 +92,7 @@ class JsonObject : public Internals::JsonPrintable<JsonObject>,
private: private:
// Create an empty JsonArray attached to the specified JsonBuffer. // Create an empty JsonArray attached to the specified JsonBuffer.
explicit JsonObject(JsonBuffer *buffer) : List(buffer) {} explicit JsonObject(JsonBuffer *buffer) : Internals::List<JsonPair>(buffer) {}
// Returns the list node that matches the specified key. // Returns the list node that matches the specified key.
node_type *getNodeAt(key_type key) const; node_type *getNodeAt(key_type key) const;