summaryrefslogtreecommitdiff
path: root/src/core/model/Document.cpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-16 12:31:06 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-16 12:31:06 +0100
commit8cf24170a4998e316c1b9c9bfd2b56e266c544cd (patch)
treef795906bafc9c904fed92c5c6c9942e4d3285c36 /src/core/model/Document.cpp
parent7bdaa89ccef864d36f1e1adce535179d9e5fadce (diff)
renamed isa to superclass in Domain::Descriptor and id some cosmetic changes.
Diffstat (limited to 'src/core/model/Document.cpp')
-rw-r--r--src/core/model/Document.cpp6
1 files changed, 3 insertions, 3 deletions
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<Node> parent, const std::string &fieldName)
: Node(mgr, std::move(name), parent)
{
- if(parent->isa(RttiTypes::StructuredEntity)){
+ if (parent->isa(RttiTypes::StructuredEntity)) {
parent.cast<StructuredEntity>()->addStructureNode(this, fieldName);
- } else if(parent->isa(RttiTypes::AnnotationEntity)){
+ } else if (parent->isa(RttiTypes::AnnotationEntity)) {
parent.cast<AnnotationEntity>()->addStructureNode(this, fieldName);
- } else{
+ } else {
throw OusiaException("The proposed parent was no DocumentEntity!");
}
}