forked from bblanchon/ArduinoJson
JsonArrayTests pass
This commit is contained in:
1 parent
c2e756d942
commit
23c73b061e
3 files changed
+10
-5
No files matched your search
@@ -30,6 +30,9 @@ class ResourceManager {
|
||||
stringPool_.clear(allocator_);
|
||||
variantPools_.clear(allocator_);
|
||||
staticStringsPools_.clear(allocator_);
|
||||
#if ARDUINOJSON_USE_8_BYTE_POOL
|
||||
eightBytePools_.clear(allocator_);
|
||||
#endif
|
||||
}
|
||||
|
||||
ResourceManager(const ResourceManager&) = delete;
|
||||
@@ -39,8 +42,9 @@ class ResourceManager {
|
||||
swap(a.stringPool_, b.stringPool_);
|
||||
swap(a.variantPools_, b.variantPools_);
|
||||
swap(a.staticStringsPools_, b.staticStringsPools_);
|
||||
#if ARDUINOJSON_USE_8_BYTE_POOL
|
||||
swap(a.eightBytePools_, b.eightBytePools_);
|
||||
swap_(a.allocator_, b.allocator_);
|
||||
#endif
|
||||
swap_(a.overflowed_, b.overflowed_);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user