[umbrello] [Bug 425156] Template typenames in attribute and operation parameter types don't work
Robert Hairgrove
bugzilla_noreply at kde.org
Mon Aug 10 15:05:32 BST 2020
https://bugs.kde.org/show_bug.cgi?id=425156
--- Comment #9 from Robert Hairgrove <code at roberthairgrove.com> ---
Thank you again for all your help, Ralf!
I have a fix now for this -- XMI loads and saves OK, code generation and import
seems to work. The only thing I noticed is that the generated code, instead of
making nested namespaces, makes three real folders (PKG1/PKG2/PKG3) and
constructs a new namespace "PKG1_PKG2_PKG3". I shall try this with packages
instead of folders.
However, this has nothing to do with templates, so I won't delve into this yet.
A question about the fix:
I needed to make UMLOperation a friend class of UMLAttribute in order to access
the m_pSecondary member on which the id() function is called. Since it is a
protected member, and UMLOperation does all the reading and writing from/to
XMI, I changed the header "attribute.h" to make the friend. Otherwise, there is
no change to any of the header files. Only other changes were a few lines in
"operation.cpp" and "classifierlistitem.cpp".
Can I make the commits to the same branch which is used for the merge request?
I'll leave the "WIP:" for now. Or do I need to close the current merge request
and make another one?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list