This commit is contained in:
Benoit Blanchon
2022-03-13 20:51:13 +01:00
parent a4307f5cd1
commit c68bd7fb95
3 changed files with 23 additions and 3 deletions

View File

@@ -177,13 +177,13 @@ class VariantData {
}
void remove(size_t index) {
if (isArray())
if (isArrayStrict())
_content.asCollection.removeElement(index);
}
template <typename TAdaptedString>
void remove(TAdaptedString key) {
if (isObject())
if (isObjectStrict())
_content.asCollection.removeMember(key);
}