summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2016-09-08 07:34:54 (GMT)
committerRalf Habacker <ralf.habacker@freenet.de>2016-09-09 09:18:30 (GMT)
commit120af5d34c2424c2eb4dd631aea925edb227fded (patch)
tree9c452d547562e30553c08627c73005be3ac4a198
parent13a513d629e86e8cc98d750f1d9e5741bbc8791a (diff)
Complete migration of UMLObject related static_casts to UMLObject::asUML...() wrapper.
CCBUG:368282
-rw-r--r--umbrello/clipboard/umldragdata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/umbrello/clipboard/umldragdata.cpp b/umbrello/clipboard/umldragdata.cpp
index f51054f..75b829f 100644
--- a/umbrello/clipboard/umldragdata.cpp
+++ b/umbrello/clipboard/umldragdata.cpp
@@ -775,7 +775,7 @@ bool UMLDragData::decodeObjects(QDomNode& objectsNode, UMLObjectList& objects, b
newParentId = oldParentId;
}
- newParent = static_cast<UMLPackage*>(doc->findObjectById(newParentId));
+ newParent = doc->findObjectById(newParentId)->asUMLPackage();
}
if (newParent == 0) {