[umbrello] [Bug 377613] c++ codegenerator creates uncompilable code using compositions
Ralf Habacker
bugzilla_noreply at kde.org
Mon Apr 3 22:28:55 UTC 2017
https://bugs.kde.org/show_bug.cgi?id=377613
Ralf Habacker <ralf.habacker at freenet.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |CONFIRMED
--- Comment #4 from Ralf Habacker <ralf.habacker at freenet.de> ---
In CppWriter::writeHeaderAccessorMethodDecl() there is a call to
writeAssociationMethods(c->getCompositions(), permitScope,
true, INLINE_ASSOCIATION_METHODS, false, c->id(), stream) which deals with
compositions.
This method generates the File composition in the class Folder *AND* the Folder
pointer in the File class. For generating the composition the parameter
writePointerVar is set to false to avoid generating classname followed by '*'
in the accessor parameter list. Unfortunally writePointerVar = true is required
to generate the classname followed by '*' in the accessor methods to m_folder
in the File class. So with current code either class Folder is uncompilable or
class File is uncompilable.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list