summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlliteralnull.cpp
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-11-26 12:42:46 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-11-26 16:38:10 +0100
commit77283562898fbf9499ebece65cc068450433cd95 (patch)
tree10b38c6c9a5e5dbe8c5021b33fe889c54dfe5e71 /src/uml/qumlliteralnull.cpp
parent0f13b4f396ac21dee5ba1df2cc4cd482b3b41f88 (diff)
Update UML metamodel implementation
Change-Id: I1aeaa9b3f30e3d7a94bb665a0a53f7d6dd52de59 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
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;
}