From 3883e6df939ad1ecb9a788153e087fefd9f0e838 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 6 Feb 2015 16:47:49 +0100 Subject: corrected attributes descriptor handling. --- test/core/model/TestAdvanced.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/core/model/TestAdvanced.hpp') diff --git a/test/core/model/TestAdvanced.hpp b/test/core/model/TestAdvanced.hpp index 3845676..2e4a541 100644 --- a/test/core/model/TestAdvanced.hpp +++ b/test/core/model/TestAdvanced.hpp @@ -56,7 +56,7 @@ static Rooted constructHeadingDomain(Manager &mgr, card.merge({0, 1}); // set up heading StructuredClass. Rooted heading{new StructuredClass( - mgr, "heading", domain, card, {nullptr}, {nullptr}, true)}; + mgr, "heading", domain, card, {nullptr}, true)}; // as field want to copy the field of paragraph. Rooted p = resolveDescriptor(bookDomain, "paragraph"); heading->copyFieldDescriptor(p->getFieldDescriptors()[0]); @@ -86,7 +86,7 @@ static Rooted constructListDomain(Manager &mgr, Rooted p = resolveDescriptor(bookDomain, "paragraph"); // set up item StructuredClass; Rooted item{new StructuredClass( - mgr, "item", domain, AnyCardinality, {nullptr}, {nullptr}, false)}; + mgr, "item", domain, AnyCardinality, {nullptr}, false)}; // as field we want to copy the field of paragraph. item->copyFieldDescriptor(p->getFieldDescriptors()[0]); @@ -94,7 +94,7 @@ static Rooted constructListDomain(Manager &mgr, std::vector listTypes{"ol", "ul"}; for (auto &listType : listTypes) { Rooted list{new StructuredClass( - mgr, listType, domain, AnyCardinality, {nullptr}, p, false)}; + mgr, listType, domain, AnyCardinality, p, false)}; Rooted list_field{new FieldDescriptor(mgr, list)}; list_field->addChild(item); } -- cgit v1.2.3