| 51 | |
| 52 | template <typename TAdaptedString> |
| 53 | inline VariantData* ObjectData::addMember(TAdaptedString key, |
| 54 | ResourceManager* resources) { |
| 55 | auto keySlot = resources->allocVariant(); |
| 56 | if (!keySlot) |
| 57 | return nullptr; |
| 58 | |
| 59 | auto valueSlot = resources->allocVariant(); |
| 60 | if (!valueSlot) |
| 61 | return nullptr; |
| 62 | |
| 63 | if (!keySlot->setString(key, resources)) |
| 64 | return nullptr; |
| 65 | |
| 66 | CollectionData::appendPair(keySlot, valueSlot, resources); |
| 67 | |
| 68 | return valueSlot.ptr(); |
| 69 | } |
| 70 | |
| 71 | inline VariantData* ObjectData::addPair(VariantData** value, |
| 72 | ResourceManager* resources) { |
nothing calls this directly
no test coverage detected