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

Oliver Kellogg okellogg at users.sourceforge.net
Fri Aug 31 14:59:00 UTC 2007


SVN commit 706919 by okellogg:

Destructor: Remove code that is already executed in resetTextBlocks().
loadChildTextBlocksFromNode(): Leave loop when "textblocks" tag seen.


 M  +1 -9      codegenobjectwithtextblocks.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/codegenobjectwithtextblocks.cpp #706918:706919
@@ -40,13 +40,6 @@
 
 CodeGenObjectWithTextBlocks::~CodeGenObjectWithTextBlocks ( ) {
     resetTextBlocks();
-    // delete all the text blocks we have
-    TextBlock *tb;
-    for (TextBlockListIt it(m_textblockVector); (tb = it.current()) != NULL; ++it)
-      delete tb;
-
-    m_textBlockTagMap.clear();
-    m_textblockVector.clear();
 }
 
 //
@@ -480,8 +473,7 @@
             element = node.toElement();
         }
 
-        tnode = telement.nextSibling();
-        telement = tnode.toElement();
+        break;
     }
 
     if (!loadCheckForChildrenOK) {




More information about the umbrello-devel mailing list