summaryrefslogtreecommitdiffstats
path: root/src/uml/qumltemplatebinding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumltemplatebinding.cpp')
-rw-r--r--src/uml/qumltemplatebinding.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/uml/qumltemplatebinding.cpp b/src/uml/qumltemplatebinding.cpp
index 0c82b305..9bd24a35 100644
--- a/src/uml/qumltemplatebinding.cpp
+++ b/src/uml/qumltemplatebinding.cpp
@@ -70,6 +70,14 @@ QUmlTemplateBinding::QUmlTemplateBinding(bool createQModelingObject) :
}
/*!
+ Destroys the QUmlTemplateBinding.
+ */
+QUmlTemplateBinding::~QUmlTemplateBinding()
+{
+ QModelingElement::deleteQModelingObject();
+}
+
+/*!
Returns a deep-copied clone of the QUmlTemplateBinding.
*/
QModelingElement *QUmlTemplateBinding::clone() const
@@ -77,12 +85,8 @@ QModelingElement *QUmlTemplateBinding::clone() const
QUmlTemplateBinding *c = new QUmlTemplateBinding;
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
- if (boundElement())
- c->setBoundElement(dynamic_cast<QUmlTemplateableElement *>(boundElement()->clone()));
foreach (QUmlTemplateParameterSubstitution *element, parameterSubstitutions())
c->addParameterSubstitution(dynamic_cast<QUmlTemplateParameterSubstitution *>(element->clone()));
- if (signature())
- c->setSignature(dynamic_cast<QUmlTemplateSignature *>(signature()->clone()));
return c;
}