[Uml-devel] kdesdk/umbrello/umbrello/diagram

Luis De la Parra Blum lparrab at gmx.net
Wed Mar 5 17:12:08 UTC 2003


CVS commit by luis: 

Uninitialized pointer could cause a crash if the widget type has not been implemented. Fixed.


  M +1 -1      widgetfactory.cpp   1.3


--- kdesdk/umbrello/umbrello/diagram/widgetfactory.cpp  #1.2:1.3
@@ -34,5 +34,5 @@ namespace Umbrello{
 DiagramElement* WidgetFactory:: createUMLWidget( UMLObject *obj , Diagram *parent )
 {
-        DiagramElement *w;
+        DiagramElement *w(0L);
         int id = parent->document()->getUniqueID();
         






More information about the umbrello-devel mailing list