| 341 | } |
| 342 | |
| 343 | VariantData* getOrAddElement(size_t index, ResourceManager* resources) { |
| 344 | auto array = isNull() ? &toArray() : asArray(); |
| 345 | if (!array) |
| 346 | return nullptr; |
| 347 | return array->getOrAddElement(index, resources); |
| 348 | } |
| 349 | |
| 350 | template <typename TAdaptedString> |
| 351 | VariantData* getOrAddMember(TAdaptedString key, ResourceManager* resources) { |