From 51de9238ddbd6b7f4cdaa5e9a5918cae952891b2 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Mon, 12 Jan 2015 15:50:10 +0100 Subject: Tried to introduce another StructureNode class as common superclass for StructuredEntity, Anchor and DocumentPrimitive. Nearly seems to work, but not entirely so. There are still issues with the Manager it seems. --- test/core/model/TestDocumentBuilder.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/core/model/TestDocumentBuilder.hpp') diff --git a/test/core/model/TestDocumentBuilder.hpp b/test/core/model/TestDocumentBuilder.hpp index 4662a28..a1c8dde 100644 --- a/test/core/model/TestDocumentBuilder.hpp +++ b/test/core/model/TestDocumentBuilder.hpp @@ -235,7 +235,7 @@ Rooted buildAnchor(Logger &logger, } // Then construct the Anchor itself Rooted anchor{ - new AnnotationEntity::Anchor(parent->getManager(), parent, id)}; + new AnnotationEntity::Anchor(parent->getManager(), id, parent)}; // append the new entity to the right field. if (!parent->hasField(fieldName)) { logger.error(std::string("The parent has no field of the name ") + -- cgit v1.2.3