mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
Removed member call on null
This commit is contained in:
@@ -26,7 +26,7 @@ inline VariantSlot* CollectionData::addSlot(MemoryPool* pool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline VariantData* CollectionData::add(MemoryPool* pool) {
|
inline VariantData* CollectionData::add(MemoryPool* pool) {
|
||||||
return addSlot(pool)->data();
|
return slotData(addSlot(pool));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename TAdaptedString>
|
template <typename TAdaptedString>
|
||||||
|
|||||||
@@ -32,4 +32,8 @@ inline size_t slotSize(const VariantSlot* var) {
|
|||||||
}
|
}
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline VariantData* slotData(VariantSlot* slot) {
|
||||||
|
return reinterpret_cast<VariantData*>(slot);
|
||||||
|
}
|
||||||
} // namespace ARDUINOJSON_NAMESPACE
|
} // namespace ARDUINOJSON_NAMESPACE
|
||||||
|
|||||||
Reference in New Issue
Block a user