diff options
author | Sandro S. Andrade <sandroandrade@kde.org> | 2013-11-26 12:42:46 -0300 |
---|---|---|
committer | Sandro S. Andrade <sandroandrade@kde.org> | 2013-11-26 16:38:10 +0100 |
commit | 77283562898fbf9499ebece65cc068450433cd95 (patch) | |
tree | 10b38c6c9a5e5dbe8c5021b33fe889c54dfe5e71 /src/uml/qumlconnectorend.cpp | |
parent | 0f13b4f396ac21dee5ba1df2cc4cd482b3b41f88 (diff) |
Update UML metamodel implementation
Change-Id: I1aeaa9b3f30e3d7a94bb665a0a53f7d6dd52de59
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlconnectorend.cpp')
-rw-r--r-- | src/uml/qumlconnectorend.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/uml/qumlconnectorend.cpp b/src/uml/qumlconnectorend.cpp index ee969c97..2c71c24d 100644 --- a/src/uml/qumlconnectorend.cpp +++ b/src/uml/qumlconnectorend.cpp @@ -70,6 +70,14 @@ QUmlConnectorEnd::QUmlConnectorEnd(bool createQModelingObject) : } /*! + Destroys the QUmlConnectorEnd. + */ +QUmlConnectorEnd::~QUmlConnectorEnd() +{ + QModelingElement::deleteQModelingObject(); +} + +/*! Returns a deep-copied clone of the QUmlConnectorEnd. */ QModelingElement *QUmlConnectorEnd::clone() const @@ -83,10 +91,6 @@ QModelingElement *QUmlConnectorEnd::clone() const c->setLowerValue(dynamic_cast<QUmlValueSpecification *>(lowerValue()->clone())); if (upperValue()) c->setUpperValue(dynamic_cast<QUmlValueSpecification *>(upperValue()->clone())); - if (partWithPort()) - c->setPartWithPort(dynamic_cast<QUmlProperty *>(partWithPort()->clone())); - if (role()) - c->setRole(dynamic_cast<QUmlConnectableElement *>(role()->clone())); return c; } |