Bug 389353 - Naming of new datatypes
Summary: Naming of new datatypes
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.23.3 (KDE Applications 17.08.3)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-23 22:04 UTC by Robert Hairgrove
Modified: 2018-01-27 15:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.24.2 (KDE Applications 17.12.2)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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