summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlinclude.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumlinclude.cpp')
-rw-r--r--src/uml/qumlinclude.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/uml/qumlinclude.cpp b/src/uml/qumlinclude.cpp
index eda37cb2..4a8d06a3 100644
--- a/src/uml/qumlinclude.cpp
+++ b/src/uml/qumlinclude.cpp
@@ -72,6 +72,14 @@ QUmlInclude::QUmlInclude(bool createQModelingObject) :
}
/*!
+ Destroys the QUmlInclude.
+ */
+QUmlInclude::~QUmlInclude()
+{
+ QModelingElement::deleteQModelingObject();
+}
+
+/*!
Returns a deep-copied clone of the QUmlInclude.
*/
QModelingElement *QUmlInclude::clone() const
@@ -79,16 +87,10 @@ QModelingElement *QUmlInclude::clone() const
QUmlInclude *c = new QUmlInclude;
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 (addition())
- c->setAddition(dynamic_cast<QUmlUseCase *>(addition()->clone()));
- if (includingCase())
- c->setIncludingCase(dynamic_cast<QUmlUseCase *>(includingCase()->clone()));
return c;
}