From 7269e0e232c7971248ffa47aa2ae44786f3d303a Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Thu, 8 Jan 2015 17:20:56 +0100 Subject: slight changes to Domain and Document. Started to add a more advanced test document creation function as well as the respective domain creation functions. The DemoOutputTest for it looks good so far. --- src/core/model/Document.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/core/model/Document.cpp') diff --git a/src/core/model/Document.cpp b/src/core/model/Document.cpp index b700ba4..073f728 100644 --- a/src/core/model/Document.cpp +++ b/src/core/model/Document.cpp @@ -100,10 +100,8 @@ static Rooted resolveDescriptor( } // Otherwise take the first valid result. for (auto &r : resolved) { - Managed *m = &(*r); - StructuredClass *c = dynamic_cast(m); - if (c != nullptr) { - return Rooted(c); + if(r->isa(typeOf())){ + return r.cast(); } } } -- cgit v1.2.3