summaryrefslogtreecommitdiffstats
path: root/src/mof/qmofliteralreal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mof/qmofliteralreal.cpp')
-rw-r--r--src/mof/qmofliteralreal.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mof/qmofliteralreal.cpp b/src/mof/qmofliteralreal.cpp
index ef90a29b..61a1644b 100644
--- a/src/mof/qmofliteralreal.cpp
+++ b/src/mof/qmofliteralreal.cpp
@@ -69,6 +69,14 @@ QMofLiteralReal::QMofLiteralReal(bool createQModelingObject)
}
/*!
+ Destroys the QMofLiteralReal.
+ */
+QMofLiteralReal::~QMofLiteralReal()
+{
+ QModelingElement::deleteQModelingObject();
+}
+
+/*!
Returns a deep-copied clone of the QMofLiteralReal.
*/
QModelingElement *QMofLiteralReal::clone() const
@@ -78,8 +86,6 @@ QModelingElement *QMofLiteralReal::clone() const
c->addOwnedComment(dynamic_cast<QMofComment *>(element->clone()));
c->setName(name());
c->setVisibility(visibility());
- if (type())
- c->setType(dynamic_cast<QMofType *>(type()->clone()));
c->setValue(value());
return c;
}