summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlslot.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/qumlslot.cpp
parent0f13b4f396ac21dee5ba1df2cc4cd482b3b41f88 (diff)
Update UML metamodel implementation
Change-Id: I1aeaa9b3f30e3d7a94bb665a0a53f7d6dd52de59 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlslot.cpp')
-rw-r--r--src/uml/qumlslot.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/uml/qumlslot.cpp b/src/uml/qumlslot.cpp
index ff3c9be6..1c3dcc75 100644
--- a/src/uml/qumlslot.cpp
+++ b/src/uml/qumlslot.cpp
@@ -69,6 +69,14 @@ QUmlSlot::QUmlSlot(bool createQModelingObject) :
}
/*!
+ Destroys the QUmlSlot.
+ */
+QUmlSlot::~QUmlSlot()
+{
+ QModelingElement::deleteQModelingObject();
+}
+
+/*!
Returns a deep-copied clone of the QUmlSlot.
*/
QModelingElement *QUmlSlot::clone() const
@@ -76,10 +84,6 @@ QModelingElement *QUmlSlot::clone() const
QUmlSlot *c = new QUmlSlot;
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
- if (definingFeature())
- c->setDefiningFeature(dynamic_cast<QUmlStructuralFeature *>(definingFeature()->clone()));
- if (owningInstance())
- c->setOwningInstance(dynamic_cast<QUmlInstanceSpecification *>(owningInstance()->clone()));
foreach (QUmlValueSpecification *element, values())
c->addValue(dynamic_cast<QUmlValueSpecification *>(element->clone()));
return c;