[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Thu Feb 22 18:08:27 UTC 2007
SVN commit 636281 by okellogg:
removeObject(): Print debug message when given object not found.
M +5 -1 package.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/package.cpp #636280:636281
@@ -129,7 +129,11 @@
UMLAssociation *assoc = static_cast<UMLAssociation*>(o);
removeAssocFromConcepts(assoc);
}
- m_objects.remove(pObject);
+ if (m_objects.findRef(pObject) == -1)
+ kDebug() << m_Name << " removeObject: object with id="
+ << ID2STR(pObject->getID()) << "not found." << endl;
+ else
+ m_objects.remove(pObject);
}
void UMLPackage::removeAllObjects() {
More information about the umbrello-devel
mailing list