From 313c07cca036472f493243263c4b3b6578f6361b Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 6 Feb 2015 16:46:10 +0100 Subject: corrected attributes default value. --- test/core/model/TestDocumentBuilder.hpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'test/core/model/TestDocumentBuilder.hpp') 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 resolveDescriptor(Handle doc, * input handle was empty or the given domains did not * contain a StructuredClass with the given name. */ -Rooted buildRootStructuredEntity(Handle document, - Logger &logger, - const Path &path, - Variant attributes = {}, - std::string name = "") +Rooted buildRootStructuredEntity( + Handle 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 buildRootStructuredEntity(Handle document, Rooted buildStructuredEntity( Handle document, Logger &logger, Handle 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 buildStructuredEntity( * input handle was empty or the given domains did not * contain a AnnotationClass with the given name. */ -Rooted buildAnnotationEntity(Handle document, - Logger &logger, const Path &path, - Handle start, - Handle end, - Variant attributes = {}, - std::string name = "") +Rooted buildAnnotationEntity( + Handle document, Logger &logger, const Path &path, + Handle start, Handle end, + Variant attributes = Variant::mapType{}, std::string name = "") { // If the input handles are not set, we can not build the entity. if (document == nullptr) { -- cgit v1.2.3