summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlextensionpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumlextensionpoint.cpp')
-rw-r--r--src/uml/qumlextensionpoint.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/uml/qumlextensionpoint.cpp b/src/uml/qumlextensionpoint.cpp
index dca6d648..4f4a6a44 100644
--- a/src/uml/qumlextensionpoint.cpp
+++ b/src/uml/qumlextensionpoint.cpp
@@ -73,6 +73,14 @@ QUmlExtensionPoint::QUmlExtensionPoint(bool createQModelingObject) :
}
/*!
+ Destroys the QUmlExtensionPoint.
+ */
+QUmlExtensionPoint::~QUmlExtensionPoint()
+{
+ QModelingElement::deleteQModelingObject();
+}
+
+/*!
Returns a deep-copied clone of the QUmlExtensionPoint.
*/
QModelingElement *QUmlExtensionPoint::clone() const
@@ -80,15 +88,11 @@ QModelingElement *QUmlExtensionPoint::clone() const
QUmlExtensionPoint *c = new QUmlExtensionPoint;
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()));
c->setVisibility(visibility());
c->setLeaf(isLeaf());
- if (useCase())
- c->setUseCase(dynamic_cast<QUmlUseCase *>(useCase()->clone()));
return c;
}