From 036ee7dd97f42efeecf1c66396731419a973126a Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 6 Feb 2015 19:21:11 +0100 Subject: made cardinality to an own class instead of using. --- test/plugins/xml/XmlParserTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/plugins/xml/XmlParserTest.cpp') diff --git a/test/plugins/xml/XmlParserTest.cpp b/test/plugins/xml/XmlParserTest.cpp index 647fc6d..6110fcb 100644 --- a/test/plugins/xml/XmlParserTest.cpp +++ b/test/plugins/xml/XmlParserTest.cpp @@ -97,7 +97,7 @@ static void checkAttributes(Handle expected, static void checkStructuredClass( Handle n, const std::string &name, Handle domain, - Variant cardinality = AnyCardinality, + Variant cardinality = Cardinality::any(), Handle attributesDescriptor = nullptr, Handle superclass = nullptr, bool transparent = false, bool root = false) @@ -115,7 +115,7 @@ static void checkStructuredClass( static Rooted checkStructuredClass( const std::string &resolve, const std::string &name, Handle domain, - Variant cardinality = AnyCardinality, + Variant cardinality = Cardinality::any(), Handle attributesDescriptor = nullptr, Handle superclass = nullptr, bool transparent = false, bool root = false) @@ -230,9 +230,9 @@ TEST(XmlParser, domainParsing) checkStructuredClass("subsection", "subsection", book_domain); Rooted paragraph = checkStructuredClass("paragraph", "paragraph", book_domain, - AnyCardinality, nullptr, nullptr, true, false); + Cardinality::any(), nullptr, nullptr, true, false); Rooted text = - checkStructuredClass("text", "text", book_domain, AnyCardinality, + checkStructuredClass("text", "text", book_domain, Cardinality::any(), nullptr, nullptr, true, false); // check the FieldDescriptors. -- cgit v1.2.3