summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlconnectorend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumlconnectorend.cpp')
-rw-r--r--src/uml/qumlconnectorend.cpp12
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;
}