[clazy] [Bug 404330] don't warn about const signals
Sergio Martins
bugzilla_noreply at kde.org
Thu Feb 14 11:21:48 GMT 2019
https://bugs.kde.org/show_bug.cgi?id=404330
Sergio Martins <smartins at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned-bugs at kde.org |smartins at kde.org
Status|REPORTED |RESOLVED
Resolution|--- |INTENTIONAL
--- Comment #1 from Sergio Martins <smartins at kde.org> ---
This has been discussed previously, and there's two schools of thought:
The purists say:
- signals are emitted to express that state has changed
- const methods don't change state
- so don't emit from const methods
The rebels say:
- Yeah, but I'm keeping state also in some global variables as I don't care
about OOP so much
- And I can change these global variables from any const method
So the only solution is for you to disable the check
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list