From f6531b10353dacdcbab211a31926c165211cf3b3 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sat, 7 Feb 2015 02:31:51 +0100 Subject: Unified handling of references to Rtti instances: Now using pointers everywhere --- test/core/model/TestDocumentBuilder.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/core/model/TestDocumentBuilder.hpp') diff --git a/test/core/model/TestDocumentBuilder.hpp b/test/core/model/TestDocumentBuilder.hpp index 3d24839..fc76b07 100644 --- a/test/core/model/TestDocumentBuilder.hpp +++ b/test/core/model/TestDocumentBuilder.hpp @@ -45,7 +45,7 @@ static std::string getPathString(const Path &path) static Rooted resolveDescriptor(Handle doc, Logger &logger, const Path &path, - const Rtti &type) + const Rtti *type) { // use the actual resolve method. std::vector resolved = doc->resolve(type, path); @@ -96,7 +96,7 @@ Rooted buildRootStructuredEntity( // If we can not find the correct descriptor, we can not build the entity // either. Rooted descriptor = - resolveDescriptor(document, logger, path, RttiTypes::StructuredClass); + resolveDescriptor(document, logger, path, &RttiTypes::StructuredClass); if (descriptor == nullptr) { return {nullptr}; } @@ -146,11 +146,11 @@ Rooted buildStructuredEntity( // If we can not find the correct descriptor, we can not build the entity // either. Rooted descriptor = - resolveDescriptor(document, logger, path, RttiTypes::StructuredClass); + resolveDescriptor(document, logger, path, &RttiTypes::StructuredClass); if (descriptor == nullptr) { return {nullptr}; } - if (!descriptor->isa(RttiTypes::StructuredClass)) { + if (!descriptor->isa(&RttiTypes::StructuredClass)) { return {nullptr}; logger.error("The descriptor was not an AnnotationClass!"); } @@ -195,11 +195,11 @@ Rooted buildAnnotationEntity( // If we can not find the correct descriptor, we can not build the // entity either. Rooted descriptor = - resolveDescriptor(document, logger, path, RttiTypes::AnnotationClass); + resolveDescriptor(document, logger, path, &RttiTypes::AnnotationClass); if (descriptor == nullptr) { return {nullptr}; } - if (!descriptor->isa(RttiTypes::AnnotationClass)) { + if (!descriptor->isa(&RttiTypes::AnnotationClass)) { return {nullptr}; logger.error("The descriptor was not an AnnotationClass!"); } -- cgit v1.2.3