Commit 3da9b7a3 authored by Ralf Habacker's avatar Ralf Habacker

Fixup of 01633284.

(cherry picked from commit 195461bc)
parent 4c3098fb
......@@ -1217,7 +1217,7 @@ int UMLClassifier::takeItem(UMLClassifierListItem *item)
break;
}
case UMLObject::ot_Attribute: {
UMLAttribute *retval = dynamic_cast<UMLAttribute*>(m_List.takeAt(index));
UMLAttribute *retval = dynamic_cast<UMLAttribute*>(m_List.takeAt(index).data());
if (retval) {
emit attributeRemoved(retval);
UMLObject::emitModified();
......@@ -1227,7 +1227,7 @@ int UMLClassifier::takeItem(UMLClassifierListItem *item)
break;
}
case UMLObject::ot_Template: {
UMLTemplate *templt = dynamic_cast<UMLTemplate*>(m_List.takeAt(index));
UMLTemplate *templt = dynamic_cast<UMLTemplate*>(m_List.takeAt(index).data());
if (templt) {
emit templateRemoved(templt);
UMLObject::emitModified();
......@@ -1237,7 +1237,7 @@ int UMLClassifier::takeItem(UMLClassifierListItem *item)
break;
}
case UMLObject::ot_EnumLiteral: {
UMLEnumLiteral *el = dynamic_cast<UMLEnumLiteral*>(m_List.takeAt(index) );
UMLEnumLiteral *el = dynamic_cast<UMLEnumLiteral*>(m_List.takeAt(index).data());
if (el) {
UMLEnum *e = static_cast<UMLEnum*>(this);
e->signalEnumLiteralRemoved(el);
......@@ -1248,7 +1248,7 @@ int UMLClassifier::takeItem(UMLClassifierListItem *item)
break;
}
case UMLObject::ot_EntityAttribute: {
UMLEntityAttribute* el = dynamic_cast<UMLEntityAttribute*>(m_List.takeAt(index));
UMLEntityAttribute* el = dynamic_cast<UMLEntityAttribute*>(m_List.takeAt(index).data());
if (el) {
UMLEntity *e = static_cast<UMLEntity*>(this);
e->signalEntityAttributeRemoved(el);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment