From cd55519130c5f91d95107b3b1e1a8203caa5008a Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Sun, 18 Jan 2015 15:30:09 +0100 Subject: Changed DocumentEntity::doValidate to work with the effective FieldDescriptors (including superclass fields). This is not yet tested, though. --- src/core/model/Document.hpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/core/model/Document.hpp') diff --git a/src/core/model/Document.hpp b/src/core/model/Document.hpp index 18ec3d5..4b95079 100644 --- a/src/core/model/Document.hpp +++ b/src/core/model/Document.hpp @@ -178,18 +178,7 @@ public: * in the given descriptor. */ DocumentEntity(Handle owner, Handle 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(owner)); - } - } - } + Variant attributes = {}); /** * Returns the Descriptor for this DocumentEntity. -- cgit v1.2.3