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/qumlreadstructuralfeatureaction.cpp | |
parent | 0f13b4f396ac21dee5ba1df2cc4cd482b3b41f88 (diff) |
Update UML metamodel implementation
Change-Id: I1aeaa9b3f30e3d7a94bb665a0a53f7d6dd52de59
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlreadstructuralfeatureaction.cpp')
-rw-r--r-- | src/uml/qumlreadstructuralfeatureaction.cpp | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/src/uml/qumlreadstructuralfeatureaction.cpp b/src/uml/qumlreadstructuralfeatureaction.cpp index 60e22683..fdb799aa 100644 --- a/src/uml/qumlreadstructuralfeatureaction.cpp +++ b/src/uml/qumlreadstructuralfeatureaction.cpp @@ -85,6 +85,14 @@ QUmlReadStructuralFeatureAction::QUmlReadStructuralFeatureAction(bool createQMod } /*! + Destroys the QUmlReadStructuralFeatureAction. + */ +QUmlReadStructuralFeatureAction::~QUmlReadStructuralFeatureAction() +{ + QModelingElement::deleteQModelingObject(); +} + +/*! Returns a deep-copied clone of the QUmlReadStructuralFeatureAction. */ QModelingElement *QUmlReadStructuralFeatureAction::clone() const @@ -92,27 +100,11 @@ QModelingElement *QUmlReadStructuralFeatureAction::clone() const QUmlReadStructuralFeatureAction *c = new QUmlReadStructuralFeatureAction; 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 (activity()) - c->setActivity(dynamic_cast<QUmlActivity *>(activity()->clone())); - foreach (QUmlInterruptibleActivityRegion *element, inInterruptibleRegions()) - c->addInInterruptibleRegion(dynamic_cast<QUmlInterruptibleActivityRegion *>(element->clone())); - foreach (QUmlActivityPartition *element, inPartitions()) - c->addInPartition(dynamic_cast<QUmlActivityPartition *>(element->clone())); - if (inStructuredNode()) - c->setInStructuredNode(dynamic_cast<QUmlStructuredActivityNode *>(inStructuredNode()->clone())); - foreach (QUmlActivityEdge *element, incomings()) - c->addIncoming(dynamic_cast<QUmlActivityEdge *>(element->clone())); - foreach (QUmlActivityEdge *element, outgoings()) - c->addOutgoing(dynamic_cast<QUmlActivityEdge *>(element->clone())); - foreach (QUmlActivityNode *element, redefinedNodes()) - c->addRedefinedNode(dynamic_cast<QUmlActivityNode *>(element->clone())); foreach (QUmlExceptionHandler *element, handlers()) c->addHandler(dynamic_cast<QUmlExceptionHandler *>(element->clone())); c->setLocallyReentrant(isLocallyReentrant()); @@ -122,8 +114,6 @@ QModelingElement *QUmlReadStructuralFeatureAction::clone() const c->addLocalPrecondition(dynamic_cast<QUmlConstraint *>(element->clone())); if (object()) c->setObject(dynamic_cast<QUmlInputPin *>(object()->clone())); - if (structuralFeature()) - c->setStructuralFeature(dynamic_cast<QUmlStructuralFeature *>(structuralFeature()->clone())); if (result()) c->setResult(dynamic_cast<QUmlOutputPin *>(result()->clone())); return c; |