mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-09-25 22:40:56 +02:00
Move clear definition
This commit is contained in:
@@ -481,7 +481,10 @@ class VariantImpl {
|
||||
}
|
||||
|
||||
// Release the resources used by this variant and set it to null.
|
||||
void clear();
|
||||
void clear() {
|
||||
if (data_)
|
||||
clear(data_, resources_);
|
||||
}
|
||||
|
||||
static void clear(VariantData* data, ResourceManager* resources);
|
||||
|
||||
|
@@ -61,11 +61,6 @@ inline void VariantImpl::clear(VariantData* data_,
|
||||
data_->type = VariantType::Null;
|
||||
}
|
||||
|
||||
inline void VariantImpl::clear() {
|
||||
if (data_)
|
||||
clear(data_, resources_);
|
||||
}
|
||||
|
||||
#if ARDUINOJSON_USE_8_BYTE_POOL
|
||||
inline const EightByteValue* VariantImpl::getEightByte() const {
|
||||
return type() & VariantTypeBits::EightByteBit
|
||||
|
Reference in New Issue
Block a user