[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sun Oct 29 19:17:03 UTC 2006


SVN commit 600159 by okellogg:

removeObject(): Don't do any physical deletion.

 M  +0 -1      package.cpp  
 M  +1 -0      package.h  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/package.cpp #600158:600159
@@ -80,7 +80,6 @@
         UMLObject *o = const_cast<UMLObject*>(pObject);
         UMLAssociation *assoc = static_cast<UMLAssociation*>(o);
         UMLCanvasObject::removeAssociation(assoc);
-        delete assoc;
     } else {
         m_objects.remove(pObject);
     }
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/package.h #600158:600159
@@ -69,6 +69,7 @@
 
     /**
      * Removes an object from this package.
+     * Does not physically delete the object.
      *
      * @param pObject   Pointer to the UMLObject to be removed.
      */




More information about the umbrello-devel mailing list