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

Sebastian Stein seb.kde at hpfsc.de
Tue Jul 13 03:39:12 UTC 2004


CVS commit by sstein: 

fix leaks:

==16320== 0 bytes in 1426 blocks are definitely lost in loss record 1 of 248
==16320==    at 0x3C01D75C: operator new[](unsigned) (vg_replace_malloc.c:113)
==16320==    by 0x3CEC470C: (within /usr/lib/qt-3.3.2/lib/libqt-mt.so.3.3.2)
==16320==    by 0x3CEC5087: QString::QString(char const*) (in /usr/lib/qt-3.3.2/lib/libqt-mt.so.3.3.2)
==16320==    by 0x825BC32: CPPSourceCodeDocument::updateContent() (cppsourcecodedocument.cpp:210)


==14951== 0 bytes in 1426 blocks are definitely lost in loss record 1 of 248
==14951==    at 0x3C01D75C: operator new[](unsigned) (vg_replace_malloc.c:113)
==14951==    by 0x3CEC470C: (within /usr/lib/qt-3.3.2/lib/libqt-mt.so.3.3.2)
==14951==    by 0x3CEC5087: QString::QString(char const*) (in /usr/lib/qt-3.3.2/lib/libqt-mt.so.3.3.2)
==14951==    by 0x8263CCB: CPPHeaderCodeDocument::updateContent() (cppheadercodedocument.cpp:436)


  M +1 -1      cppheadercodedocument.cpp   1.24
  M +1 -1      cppsourcecodedocument.cpp   1.13


--- kdesdk/umbrello/umbrello/codegenerators/cppsourcecodedocument.cpp  #1.12:1.13
@@ -208,5 +208,5 @@ void CPPSourceCodeDocument::updateConten
         }
         // now, add/update the includes codeblock
-        CodeBlockWithComments * iblock = addOrUpdateTaggedCodeBlockWithComments("includes", includeStatement, "", 0, false);
+        CodeBlockWithComments * iblock = addOrUpdateTaggedCodeBlockWithComments("includes", includeStatement, QString(""), 0, false);
         if(includeStatement.isEmpty() && iblock->getContentType() == CodeBlock::AutoGenerated)
                 iblock->setWriteOutText(false);

--- kdesdk/umbrello/umbrello/codegenerators/cppheadercodedocument.cpp  #1.23:1.24
@@ -434,5 +434,5 @@ void CPPHeaderCodeDocument::updateConten
         QString hashDefine = gen->getCPPClassName(c->getName()).upper().simplifyWhiteSpace().replace(QRegExp(" "),  "_");
         QString defText = "#ifndef "+hashDefine + "_H"+ endLine + "#define "+ hashDefine + "_H";
-        addOrUpdateTaggedCodeBlockWithComments("hashDefBlock", defText, "", 0, false);
+        addOrUpdateTaggedCodeBlockWithComments("hashDefBlock", defText, QString(""), 0, false);
 
         // INCLUDE CODEBLOCK 






More information about the umbrello-devel mailing list