summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlnamespace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumlnamespace.cpp')
-rw-r--r--src/uml/qumlnamespace.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/uml/qumlnamespace.cpp b/src/uml/qumlnamespace.cpp
index 0691ea87..279b7a69 100644
--- a/src/uml/qumlnamespace.cpp
+++ b/src/uml/qumlnamespace.cpp
@@ -70,6 +70,14 @@ QUmlNamespace::QUmlNamespace()
}
/*!
+ Destroys the QUmlNamespace.
+ */
+QUmlNamespace::~QUmlNamespace()
+{
+ QModelingElement::deleteQModelingObject();
+}
+
+/*!
Returns a deep-copied clone of the QUmlNamespace.
*/
QModelingElement *QUmlNamespace::clone() const
@@ -77,8 +85,6 @@ QModelingElement *QUmlNamespace::clone() const
QUmlNamespace *c = new QUmlNamespace;
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()));