Initializes a brand-new MArray created with the empty constructor, as though it had been created with the existing-Array constructor. Useful in situations where you can't pass parameters to the constructor (i.e. when embedding an MArray in an Objective-C++ object.) */
| 38 | pass parameters to the constructor (i.e. when embedding an MArray in an Objective-C++ |
| 39 | object.) */ |
| 40 | void initInSlot(MValue *mv, MCollection *parent, bool isMutable) { |
| 41 | MCollection::initInSlot(mv, parent, isMutable); |
| 42 | assert(!_array); |
| 43 | _array = mv->value().asArray(); |
| 44 | _vec.resize(_array.count()); |
| 45 | } |
| 46 | |
| 47 | void initInSlot(MValue *mv, MCollection *parent) { |
| 48 | initInSlot(mv, parent, parent->mutableChildren()); |
nothing calls this directly
no test coverage detected