diff --git a/src/ArduinoJson/Data/List.hpp b/src/ArduinoJson/Data/List.hpp index 5a1a91c3..e3f2f63d 100644 --- a/src/ArduinoJson/Data/List.hpp +++ b/src/ArduinoJson/Data/List.hpp @@ -4,7 +4,7 @@ #pragma once -#include "../Memory/JsonBuffer.hpp" +#include "../Memory/MemoryPool.hpp" #include "ListConstIterator.hpp" #include "ListIterator.hpp" @@ -32,8 +32,8 @@ class List { return nodeCount; } - iterator add(JsonBuffer *buffer) { - node_type *newNode = new (buffer) node_type(); + iterator add(MemoryPool *memoryPool) { + node_type *newNode = new (memoryPool) node_type(); if (_firstNode) { node_type *lastNode = _firstNode; diff --git a/src/ArduinoJson/Data/ListNode.hpp b/src/ArduinoJson/Data/ListNode.hpp index 0dbb5dcf..cea708a3 100644 --- a/src/ArduinoJson/Data/ListNode.hpp +++ b/src/ArduinoJson/Data/ListNode.hpp @@ -6,7 +6,7 @@ #include // for NULL -#include "../Memory/JsonBufferAllocated.hpp" +#include "../Memory/AllocableInMemoryPool.hpp" namespace ArduinoJson { namespace Internals { @@ -14,7 +14,7 @@ namespace Internals { // A node for a singly-linked list. // Used by List and its iterators. template -struct ListNode : public Internals::JsonBufferAllocated { +struct ListNode : public Internals::AllocableInMemoryPool { ListNode() NOEXCEPT : next(NULL) {} ListNode *next; diff --git a/src/ArduinoJson/Deserialization/deserialize.hpp b/src/ArduinoJson/Deserialization/deserialize.hpp index 736e1bad..3c97364a 100644 --- a/src/ArduinoJson/Deserialization/deserialize.hpp +++ b/src/ArduinoJson/Deserialization/deserialize.hpp @@ -16,11 +16,12 @@ namespace ArduinoJson { namespace Internals { template