Fixed object keys not being duplicated

This commit is contained in:
Benoit Blanchon
2018-10-04 11:16:23 +02:00
parent 527dc19794
commit 6b985b2d1f
30 changed files with 368 additions and 218 deletions

View File

@@ -16,12 +16,12 @@ class ZeroTerminatedFlashString {
return strcmp_P(expected, actual) == 0;
}
bool is_null() const {
bool isNull() const {
return !_str;
}
template <typename Buffer>
const char* save(Buffer* memoryPool) const {
template <typename TMemoryPool>
const char* save(TMemoryPool* memoryPool) const {
if (!_str) return NULL;
size_t n = size() + 1; // copy the terminator
void* dup = memoryPool->alloc(n);