diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-18 15:30:09 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-18 15:30:09 +0100 |
commit | cd55519130c5f91d95107b3b1e1a8203caa5008a (patch) | |
tree | ba9473f4f49322584b7f46c8f877b3f35d074bc2 /src/core/model/Document.hpp | |
parent | 3e63d6539b9738018a4aca68d07a119e4402e9aa (diff) |
Changed DocumentEntity::doValidate to work with the effective FieldDescriptors (including superclass fields). This is not yet tested, though.
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 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<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. |