summaryrefslogtreecommitdiff
path: root/test/core/model/TestDocumentBuilder.hpp
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/core/model/TestDocumentBuilder.hpp
parent6b3b2f5965e5dfb2000bb9c23f11a83e175741de (diff)
Unified handling of references to Rtti instances: Now using pointers everywhere
Diffstat (limited to 'test/core/model/TestDocumentBuilder.hpp')
-rw-r--r--test/core/model/TestDocumentBuilder.hpp12
1 files changed, 6 insertions, 6 deletions
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<Descriptor> resolveDescriptor(Handle<Document> doc,
Logger &logger, const Path &path,
- const Rtti &type)
+ const Rtti *type)
{
// use the actual resolve method.
std::vector<ResolutionResult> resolved = doc->resolve(type, path);
@@ -96,7 +96,7 @@ Rooted<StructuredEntity> buildRootStructuredEntity(
// If we can not find the correct descriptor, we can not build the entity
// either.
Rooted<Descriptor> descriptor =
- resolveDescriptor(document, logger, path, RttiTypes::StructuredClass);
+ resolveDescriptor(document, logger, path, &RttiTypes::StructuredClass);
if (descriptor == nullptr) {
return {nullptr};
}
@@ -146,11 +146,11 @@ Rooted<StructuredEntity> buildStructuredEntity(
// If we can not find the correct descriptor, we can not build the entity
// either.
Rooted<Descriptor> 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<AnnotationEntity> buildAnnotationEntity(
// If we can not find the correct descriptor, we can not build the
// entity either.
Rooted<Descriptor> 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!");
}