summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlreadlinkobjectendaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumlreadlinkobjectendaction.cpp')
-rw-r--r--src/uml/qumlreadlinkobjectendaction.cpp26
1 files changed, 8 insertions, 18 deletions
diff --git a/src/uml/qumlreadlinkobjectendaction.cpp b/src/uml/qumlreadlinkobjectendaction.cpp
index 20670c42..543f973a 100644
--- a/src/uml/qumlreadlinkobjectendaction.cpp
+++ b/src/uml/qumlreadlinkobjectendaction.cpp
@@ -87,6 +87,14 @@ QUmlReadLinkObjectEndAction::QUmlReadLinkObjectEndAction(bool createQModelingObj
}
/*!
+ Destroys the QUmlReadLinkObjectEndAction.
+ */
+QUmlReadLinkObjectEndAction::~QUmlReadLinkObjectEndAction()
+{
+ QModelingElement::deleteQModelingObject();
+}
+
+/*!
Returns a deep-copied clone of the QUmlReadLinkObjectEndAction.
*/
QModelingElement *QUmlReadLinkObjectEndAction::clone() const
@@ -94,27 +102,11 @@ QModelingElement *QUmlReadLinkObjectEndAction::clone() const
QUmlReadLinkObjectEndAction *c = new QUmlReadLinkObjectEndAction;
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 *QUmlReadLinkObjectEndAction::clone() const
c->addLocalPostcondition(dynamic_cast<QUmlConstraint *>(element->clone()));
foreach (QUmlConstraint *element, localPreconditions())
c->addLocalPrecondition(dynamic_cast<QUmlConstraint *>(element->clone()));
- if (end())
- c->setEnd(dynamic_cast<QUmlProperty *>(end()->clone()));
if (object())
c->setObject(dynamic_cast<QUmlInputPin *>(object()->clone()));
if (result())