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/qumlexecutionoccurrencespecification.cpp | |
parent | 0f13b4f396ac21dee5ba1df2cc4cd482b3b41f88 (diff) |
Update UML metamodel implementation
Change-Id: I1aeaa9b3f30e3d7a94bb665a0a53f7d6dd52de59
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlexecutionoccurrencespecification.cpp')
-rw-r--r-- | src/uml/qumlexecutionoccurrencespecification.cpp | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/uml/qumlexecutionoccurrencespecification.cpp b/src/uml/qumlexecutionoccurrencespecification.cpp index c785c50b..521847f9 100644 --- a/src/uml/qumlexecutionoccurrencespecification.cpp +++ b/src/uml/qumlexecutionoccurrencespecification.cpp @@ -77,6 +77,14 @@ QUmlExecutionOccurrenceSpecification::QUmlExecutionOccurrenceSpecification(bool } /*! + Destroys the QUmlExecutionOccurrenceSpecification. + */ +QUmlExecutionOccurrenceSpecification::~QUmlExecutionOccurrenceSpecification() +{ + QModelingElement::deleteQModelingObject(); +} + +/*! Returns a deep-copied clone of the QUmlExecutionOccurrenceSpecification. */ QModelingElement *QUmlExecutionOccurrenceSpecification::clone() const @@ -84,26 +92,12 @@ QModelingElement *QUmlExecutionOccurrenceSpecification::clone() const QUmlExecutionOccurrenceSpecification *c = new QUmlExecutionOccurrenceSpecification; 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 (enclosingInteraction()) - c->setEnclosingInteraction(dynamic_cast<QUmlInteraction *>(enclosingInteraction()->clone())); - if (enclosingOperand()) - c->setEnclosingOperand(dynamic_cast<QUmlInteractionOperand *>(enclosingOperand()->clone())); foreach (QUmlGeneralOrdering *element, generalOrderings()) c->addGeneralOrdering(dynamic_cast<QUmlGeneralOrdering *>(element->clone())); - if (covered()) - c->setCovered(dynamic_cast<QUmlLifeline *>(covered()->clone())); - foreach (QUmlGeneralOrdering *element, toAfters()) - c->addToAfter(dynamic_cast<QUmlGeneralOrdering *>(element->clone())); - foreach (QUmlGeneralOrdering *element, toBefores()) - c->addToBefore(dynamic_cast<QUmlGeneralOrdering *>(element->clone())); - if (execution()) - c->setExecution(dynamic_cast<QUmlExecutionSpecification *>(execution()->clone())); return c; } |