summaryrefslogtreecommitdiff
path: root/test/plugins/xml
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-07 02:31:51 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-07 02:31:51 +0100
commitf6531b10353dacdcbab211a31926c165211cf3b3 (patch)
treeb0c6508bb58b5a34e4b4f8007af5af44fd38aca1 /test/plugins/xml
parent6b3b2f5965e5dfb2000bb9c23f11a83e175741de (diff)
Unified handling of references to Rtti instances: Now using pointers everywhere
Diffstat (limited to 'test/plugins/xml')
-rw-r--r--test/plugins/xml/XmlParserTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/plugins/xml/XmlParserTest.cpp b/test/plugins/xml/XmlParserTest.cpp
index 4b5e1e4..af1ef56 100644
--- a/test/plugins/xml/XmlParserTest.cpp
+++ b/test/plugins/xml/XmlParserTest.cpp
@@ -120,7 +120,7 @@ static Rooted<StructuredClass> checkStructuredClass(
Handle<StructuredClass> superclass = nullptr, bool transparent = false,
bool root = false)
{
- auto res = domain->resolve(RttiTypes::StructuredClass, resolve);
+ auto res = domain->resolve(&RttiTypes::StructuredClass, resolve);
if (res.size() != 1) {
throw OusiaException("resolution error!");
}
@@ -146,7 +146,7 @@ static Rooted<AnnotationClass> checkAnnotationClass(
const std::string &resolve, const std::string &name, Handle<Domain> domain,
Handle<StructType> attributesDescriptor = nullptr)
{
- auto res = domain->resolve(RttiTypes::AnnotationClass, resolve);
+ auto res = domain->resolve(&RttiTypes::AnnotationClass, resolve);
if (res.size() != 1) {
throw OusiaException("resolution error!");
}
@@ -183,7 +183,7 @@ static void checkFieldDescriptor(
FieldDescriptor::FieldType type = FieldDescriptor::FieldType::TREE,
Handle<Type> primitiveType = nullptr, bool optional = false)
{
- auto res = desc->resolve(RttiTypes::FieldDescriptor, name);
+ auto res = desc->resolve(&RttiTypes::FieldDescriptor, name);
ASSERT_EQ(1, res.size());
checkFieldDescriptor(res[0].node, name, parent, children, type,
primitiveType, optional);