Bug 389353

Summary: Naming of new datatypes
Product: [Applications] umbrello Reporter: Robert Hairgrove <code>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.23.3 (KDE Applications 17.08.3)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 2.24.2 (KDE Applications 17.12.2)

Description Robert Hairgrove 2018-01-23 22:04:50 UTC
When I create a new datatype by selecting the toolbar icon and clicking in the diagram, I am presented with a dialog so that I can give it a new name. For C++, I try "size_t" and "uint64_t". Both times, Umbrello complains that those are "reserved keywords for the language of the configured code generator".

However, if I give it another name which is accepted, I can right-click on the icon and choose "Change name...". Then it is OK when I call it "size_t", etc.

Either there should be no warning at all, or there should be a warning both times. Can I ignore the warning if I never do code generation? I only use UML for documentation purposes, anyway.
Comment 1 Ralf Habacker 2018-01-27 15:56:18 UTC
Git commit 530af55f967a7db866ad2ce4fc880015d45a850e by Ralf Habacker.
Committed on 27/01/2018 at 15:56.
Pushed by habacker into branch 'Applications/17.12'.

Fix 'Naming of new datatypes'

The check against reserved keywords does not apply at least for datatypes.
FIXED-IN:2.24.2 (KDE Applications 17.12.2)

M  +7    -5    umbrello/object_factory.cpp

https://commits.kde.org/umbrello/530af55f967a7db866ad2ce4fc880015d45a850e