diff options
Diffstat (limited to 'src/uml/qumlliteralreal.cpp')
-rw-r--r-- | src/uml/qumlliteralreal.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/uml/qumlliteralreal.cpp b/src/uml/qumlliteralreal.cpp index 5232583f..86624788 100644 --- a/src/uml/qumlliteralreal.cpp +++ b/src/uml/qumlliteralreal.cpp @@ -73,6 +73,14 @@ QUmlLiteralReal::QUmlLiteralReal(bool createQModelingObject) } /*! + Destroys the QUmlLiteralReal. + */ +QUmlLiteralReal::~QUmlLiteralReal() +{ + QModelingElement::deleteQModelingObject(); +} + +/*! Returns a deep-copied clone of the QUmlLiteralReal. */ QModelingElement *QUmlLiteralReal::clone() const @@ -80,17 +88,9 @@ QModelingElement *QUmlLiteralReal::clone() const QUmlLiteralReal *c = new QUmlLiteralReal; 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())); - if (type()) - c->setType(dynamic_cast<QUmlType *>(type()->clone())); - if (owningTemplateParameter()) - c->setOwningTemplateParameter(dynamic_cast<QUmlTemplateParameter *>(owningTemplateParameter()->clone())); - if (templateParameter()) - c->setTemplateParameter(dynamic_cast<QUmlTemplateParameter *>(templateParameter()->clone())); c->setVisibility(visibility()); c->setValue(value()); return c; |