From 8cf24170a4998e316c1b9c9bfd2b56e266c544cd Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 16 Jan 2015 12:31:06 +0100 Subject: renamed isa to superclass in Domain::Descriptor and id some cosmetic changes. --- src/core/model/Document.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/model/Document.cpp') diff --git a/src/core/model/Document.cpp b/src/core/model/Document.cpp index 299b427..fb39384 100644 --- a/src/core/model/Document.cpp +++ b/src/core/model/Document.cpp @@ -95,11 +95,11 @@ StructureNode::StructureNode(Manager &mgr, std::string name, Handle parent, const std::string &fieldName) : Node(mgr, std::move(name), parent) { - if(parent->isa(RttiTypes::StructuredEntity)){ + if (parent->isa(RttiTypes::StructuredEntity)) { parent.cast()->addStructureNode(this, fieldName); - } else if(parent->isa(RttiTypes::AnnotationEntity)){ + } else if (parent->isa(RttiTypes::AnnotationEntity)) { parent.cast()->addStructureNode(this, fieldName); - } else{ + } else { throw OusiaException("The proposed parent was no DocumentEntity!"); } } -- cgit v1.2.3