summaryrefslogtreecommitdiff
path: root/test/core/model/TestDocumentBuilder.hpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-06 16:46:10 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-06 16:46:10 +0100
commit313c07cca036472f493243263c4b3b6578f6361b (patch)
tree6bd207876f039bf851c4670aa101ec3c30faa238 /test/core/model/TestDocumentBuilder.hpp
parent6a305c384ad63f37da9206f60d897b59626f620c (diff)
corrected attributes default value.
Diffstat (limited to 'test/core/model/TestDocumentBuilder.hpp')
-rw-r--r--test/core/model/TestDocumentBuilder.hpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/test/core/model/TestDocumentBuilder.hpp b/test/core/model/TestDocumentBuilder.hpp
index 05b27b7..3d24839 100644
--- a/test/core/model/TestDocumentBuilder.hpp
+++ b/test/core/model/TestDocumentBuilder.hpp
@@ -84,11 +84,9 @@ static Rooted<Descriptor> resolveDescriptor(Handle<Document> doc,
* input handle was empty or the given domains did not
* contain a StructuredClass with the given name.
*/
-Rooted<StructuredEntity> buildRootStructuredEntity(Handle<Document> document,
- Logger &logger,
- const Path &path,
- Variant attributes = {},
- std::string name = "")
+Rooted<StructuredEntity> buildRootStructuredEntity(
+ Handle<Document> document, Logger &logger, const Path &path,
+ Variant attributes = Variant::mapType{}, std::string name = "")
{
// If the parent is not set, we can not build the entity.
if (document == nullptr) {
@@ -134,7 +132,7 @@ Rooted<StructuredEntity> buildRootStructuredEntity(Handle<Document> document,
Rooted<StructuredEntity> buildStructuredEntity(
Handle<Document> document, Logger &logger, Handle<StructuredEntity> parent,
Path path, const std::string &fieldName = DEFAULT_FIELD_NAME,
- Variant attributes = {}, std::string name = "")
+ Variant attributes = Variant::mapType{}, std::string name = "")
{
// If the input handles are not set, we can not build the entity.
if (parent == nullptr) {
@@ -184,12 +182,10 @@ Rooted<StructuredEntity> buildStructuredEntity(
* input handle was empty or the given domains did not
* contain a AnnotationClass with the given name.
*/
-Rooted<AnnotationEntity> buildAnnotationEntity(Handle<Document> document,
- Logger &logger, const Path &path,
- Handle<Anchor> start,
- Handle<Anchor> end,
- Variant attributes = {},
- std::string name = "")
+Rooted<AnnotationEntity> buildAnnotationEntity(
+ Handle<Document> document, Logger &logger, const Path &path,
+ Handle<Anchor> start, Handle<Anchor> end,
+ Variant attributes = Variant::mapType{}, std::string name = "")
{
// If the input handles are not set, we can not build the entity.
if (document == nullptr) {