summaryrefslogtreecommitdiff
path: root/test/core/model/TestDocumentBuilder.hpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-12 15:50:10 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-12 15:50:10 +0100
commit51de9238ddbd6b7f4cdaa5e9a5918cae952891b2 (patch)
tree90f9a91e8a67a5ee95b1cb2e3addda6b51ff7209 /test/core/model/TestDocumentBuilder.hpp
parent60d9d3f9f54fab975c39d4c341f118df90628375 (diff)
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.
Diffstat (limited to 'test/core/model/TestDocumentBuilder.hpp')
-rw-r--r--test/core/model/TestDocumentBuilder.hpp2
1 files changed, 1 insertions, 1 deletions
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<AnnotationEntity::Anchor> buildAnchor(Logger &logger,
}
// Then construct the Anchor itself
Rooted<AnnotationEntity::Anchor> 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 ") +