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/qumlconnectionpointreference.cpp | |
parent | 0f13b4f396ac21dee5ba1df2cc4cd482b3b41f88 (diff) |
Update UML metamodel implementation
Change-Id: I1aeaa9b3f30e3d7a94bb665a0a53f7d6dd52de59
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlconnectionpointreference.cpp')
-rw-r--r-- | src/uml/qumlconnectionpointreference.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/uml/qumlconnectionpointreference.cpp b/src/uml/qumlconnectionpointreference.cpp index f017fe6d..ae2a7e99 100644 --- a/src/uml/qumlconnectionpointreference.cpp +++ b/src/uml/qumlconnectionpointreference.cpp @@ -76,6 +76,14 @@ QUmlConnectionPointReference::QUmlConnectionPointReference(bool createQModelingO } /*! + Destroys the QUmlConnectionPointReference. + */ +QUmlConnectionPointReference::~QUmlConnectionPointReference() +{ + QModelingElement::deleteQModelingObject(); +} + +/*! Returns a deep-copied clone of the QUmlConnectionPointReference. */ QModelingElement *QUmlConnectionPointReference::clone() const @@ -83,20 +91,10 @@ QModelingElement *QUmlConnectionPointReference::clone() const QUmlConnectionPointReference *c = new QUmlConnectionPointReference; 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()); - if (container()) - c->setContainer(dynamic_cast<QUmlRegion *>(container()->clone())); - foreach (QUmlPseudostate *element, entries()) - c->addEntry(dynamic_cast<QUmlPseudostate *>(element->clone())); - foreach (QUmlPseudostate *element, exits()) - c->addExit(dynamic_cast<QUmlPseudostate *>(element->clone())); - if (state()) - c->setState(dynamic_cast<QUmlState *>(state()->clone())); return c; } |