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 --- src/core/parser/ParserScope.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/core/parser/ParserScope.hpp') diff --git a/src/core/parser/ParserScope.hpp b/src/core/parser/ParserScope.hpp index 1de1592..bd6a29f 100644 --- a/src/core/parser/ParserScope.hpp +++ b/src/core/parser/ParserScope.hpp @@ -103,7 +103,7 @@ public: * @return a reference at a resolved node or nullptr if no node could be * found. */ - Rooted resolve(const Rtti &type, const std::vector &path, + Rooted resolve(const Rtti *type, const std::vector &path, Logger &logger); /** @@ -167,7 +167,7 @@ public: template Rooted select(int maxDepth = -1) { - return select(RttiSet{&typeOf()}, maxDepth).cast(); + return select(RttiSet{typeOf()}, maxDepth).cast(); } /** @@ -195,7 +195,7 @@ public: template Rooted selectOrThrow(int maxDepth = -1) { - return selectOrThrow(RttiSet{&typeOf()}, maxDepth).cast(); + return selectOrThrow(RttiSet{typeOf()}, maxDepth).cast(); } }; @@ -227,7 +227,7 @@ public: /** * Reference at the type of the object that should be resolved. */ - const Rtti &type; + const Rtti *type; /** * Node for which the resolution is taking place. @@ -248,7 +248,7 @@ public: * @param owner is the node for which the resolution takes place. */ DeferredResolution(const NodeVector &nodes, - const std::vector &path, const Rtti &type, + const std::vector &path, const Rtti *type, ResolutionResultCallback resultCallback, Handle owner); @@ -482,7 +482,7 @@ public: * not mean, that the resolved object does not exist, as it may be resolved * later. */ - bool resolve(const Rtti &type, const std::vector &path, + bool resolve(const Rtti *type, const std::vector &path, Handle owner, Logger &logger, ResolutionImposterCallback imposterCallback, ResolutionResultCallback resultCallback); @@ -505,7 +505,7 @@ public: * mean, that the resolved object does not exist, as it may be resolved * later. */ - bool resolve(const Rtti &type, const std::vector &path, + bool resolve(const Rtti *type, const std::vector &path, Handle owner, Logger &logger, ResolutionResultCallback resultCallback); -- cgit v1.2.3