[Uml-devel] Re: kdesdk/umbrello/umbrello/codegenerators
Matt Rogers
matt.rogers at kdemail.net
Tue Jul 13 06:23:03 UTC 2004
> --- 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(QRe
>gExp(" "), "_"); QString defText = "#ifndef "+hashDefine + "_H"+ endLine +
> "#define "+ hashDefine + "_H"; -
> addOrUpdateTaggedCodeBlockWithComments("hashDefBlock", defText, "", 0,
> false); + addOrUpdateTaggedCodeBlockWithComments("hashDefBlock",
> defText, QString(""), 0, false);
>
> // INCLUDE CODEBLOCK
You should probably use QString::null here. It should have the same effect.
More information about the umbrello-devel
mailing list