summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlprofileapplication.cpp
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-11-26 12:42:46 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-11-26 16:38:10 +0100
commit77283562898fbf9499ebece65cc068450433cd95 (patch)
tree10b38c6c9a5e5dbe8c5021b33fe889c54dfe5e71 /src/uml/qumlprofileapplication.cpp
parent0f13b4f396ac21dee5ba1df2cc4cd482b3b41f88 (diff)
Update UML metamodel implementation
Change-Id: I1aeaa9b3f30e3d7a94bb665a0a53f7d6dd52de59 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlprofileapplication.cpp')
-rw-r--r--src/uml/qumlprofileapplication.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/uml/qumlprofileapplication.cpp b/src/uml/qumlprofileapplication.cpp
index 46ba18c7..8e765037 100644
--- a/src/uml/qumlprofileapplication.cpp
+++ b/src/uml/qumlprofileapplication.cpp
@@ -70,6 +70,14 @@ QUmlProfileApplication::QUmlProfileApplication(bool createQModelingObject) :
}
/*!
+ Destroys the QUmlProfileApplication.
+ */
+QUmlProfileApplication::~QUmlProfileApplication()
+{
+ QModelingElement::deleteQModelingObject();
+}
+
+/*!
Returns a deep-copied clone of the QUmlProfileApplication.
*/
QModelingElement *QUmlProfileApplication::clone() const
@@ -77,10 +85,6 @@ QModelingElement *QUmlProfileApplication::clone() const
QUmlProfileApplication *c = new QUmlProfileApplication;
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
- if (appliedProfile())
- c->setAppliedProfile(dynamic_cast<QUmlProfile *>(appliedProfile()->clone()));
- if (applyingPackage())
- c->setApplyingPackage(dynamic_cast<QUmlPackage *>(applyingPackage()->clone()));
c->setStrict(isStrict());
return c;
}