diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-08 17:20:56 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-08 17:20:56 +0100 |
commit | 7269e0e232c7971248ffa47aa2ae44786f3d303a (patch) | |
tree | eabdb8a545efd86a3aab3f63deb806e33f08d7a0 /src/core/model/Document.cpp | |
parent | 33b92b72ed160f22dc627e841d5f84de4ebc0c6c (diff) |
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.
Diffstat (limited to 'src/core/model/Document.cpp')
-rw-r--r-- | src/core/model/Document.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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<StructuredClass> resolveDescriptor( } // Otherwise take the first valid result. for (auto &r : resolved) { - Managed *m = &(*r); - StructuredClass *c = dynamic_cast<StructuredClass *>(m); - if (c != nullptr) { - return Rooted<StructuredClass>(c); + if(r->isa(typeOf<StructuredClass>())){ + return r.cast<StructuredClass>(); } } } |