[kmymoney] [Bug 495204] huge number of build warnings: declaration of ‘value’ shadows a member of ‘MyMoneyKeyValueContainer’ [-Wshadow]
Ralf Habacker
bugzilla_noreply at kde.org
Tue Oct 22 20:37:59 BST 2024
https://bugs.kde.org/show_bug.cgi?id=495204
--- Comment #1 from Ralf Habacker <ralf.habacker at freenet.de> ---
Comment from Thomas Baumgart at
https://invent.kde.org/office/kmymoney/-/merge_requests/235#note_1057397
> Why does the name of the argument need to be changed? In case there is a reason, please call it newValue instead of _value.
> Rationale: Each name that begins with an underscore is reserved to the implementation for use as a name in the global namespace as per C++ specs.
> So I recommend to avoid using it in this context (even though it does not conflict as we have no global namespace here).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel
mailing list