summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlliteralnull.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumlliteralnull.cpp')
-rw-r--r--src/uml/qumlliteralnull.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/uml/qumlliteralnull.cpp b/src/uml/qumlliteralnull.cpp
index f755a870..b0ce9352 100644
--- a/src/uml/qumlliteralnull.cpp
+++ b/src/uml/qumlliteralnull.cpp
@@ -73,6 +73,14 @@ QUmlLiteralNull::QUmlLiteralNull(bool createQModelingObject)
}
/*!
+ Destroys the QUmlLiteralNull.
+ */
+QUmlLiteralNull::~QUmlLiteralNull()
+{
+ QModelingElement::deleteQModelingObject();
+}
+
+/*!
Returns a deep-copied clone of the QUmlLiteralNull.
*/
QModelingElement *QUmlLiteralNull::clone() const
@@ -80,17 +88,9 @@ QModelingElement *QUmlLiteralNull::clone() const
QUmlLiteralNull *c = new QUmlLiteralNull;
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
- foreach (QUmlDependency *element, clientDependencies())
- c->addClientDependency(dynamic_cast<QUmlDependency *>(element->clone()));
c->setName(name());
if (nameExpression())
c->setNameExpression(dynamic_cast<QUmlStringExpression *>(nameExpression()->clone()));
- if (type())
- c->setType(dynamic_cast<QUmlType *>(type()->clone()));
- if (owningTemplateParameter())
- c->setOwningTemplateParameter(dynamic_cast<QUmlTemplateParameter *>(owningTemplateParameter()->clone()));
- if (templateParameter())
- c->setTemplateParameter(dynamic_cast<QUmlTemplateParameter *>(templateParameter()->clone()));
c->setVisibility(visibility());
return c;
}