[Interest] clazy - why signals shouldn't be const?

Tomasz Siekierda sierdzio at gmail.com
Mon Jul 9 13:20:48 CEST 2018


On Mon, 9 Jul 2018 at 13:17, Sérgio Martins <sergio.martins at kdab.com> wrote:

> On 2018-07-09 11:43, Tomasz Siekierda wrote:
> > Hi,
> >
> > perhaps not the best list to ask, but hopefully somebody more familiar
> > with
> > clazy will comment.
> >
> > Why does clazy complain about const signals?
>
> It's not wrong to use const signals.
> That check is for developers that don't like changing state from const
> methods (and a signal implies state was changed).
> If it doesn't bother you then you can disable the check.
>
> But I'll remove it from the default group, make it opt-in and update the
> readme. As you're not the first one to ask.
>

Thank you for replying and the explanation :-)



>
>
>
> Regards,
> --
> Sérgio Martins | sergio.martins at kdab.com | Senior Software Engineer
> Klarälvdalens Datakonsult AB, a KDAB Group company
> Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
> KDAB - The Qt, C++ and OpenGL Experts
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180709/38bf846c/attachment.html>


More information about the Interest mailing list