diff options
Diffstat (limited to 'src/core/model/Document.hpp')
-rw-r--r-- | src/core/model/Document.hpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/core/model/Document.hpp b/src/core/model/Document.hpp index 9410d17..b4ee429 100644 --- a/src/core/model/Document.hpp +++ b/src/core/model/Document.hpp @@ -178,18 +178,7 @@ public: * in the given descriptor. */ DocumentEntity(Handle<Node> owner, Handle<Descriptor> descriptor, - Variant attributes = {}) - : descriptor(owner->acquire(descriptor)), - attributes(std::move(attributes)) - { - // insert empty vectors for each field. - if (!descriptor.isNull()) { - for (size_t f = 0; f < descriptor->getFieldDescriptors().size(); - f++) { - fields.push_back(NodeVector<StructureNode>(owner)); - } - } - } + Variant attributes = {}); /** * Returns the Descriptor for this DocumentEntity. |