diff options
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; |