[QGIS-Developer] cppcheck false positive

Denis Rouzaud denis.rouzaud at gmail.com
Tue Sep 29 03:56:56 PDT 2020


Side question, is there a technical reason to prefer this syntax over the =
one?

The = is more readable to me, but that's a matter of experience I guess.
More generally, it would be nice to decide for one syntax and have a
coherence over the source code.

Cheers,
Denis

Le mar. 29 sept. 2020 à 11:55, Alessandro Pasotti <apasotti at gmail.com> a
écrit :

> Looks like cppcheck is not smart enough...
>
> const double factor { std::pow( 10, - mPrecisionSpinBox->value() ) };
>
>
> https://github.com/qgis/QGIS/pull/39079/checks?check_run_id=1181360827#step:4:1693
>
> --
> Alessandro Pasotti
> QCooperative:  www.qcooperative.net
> ItOpen:   www.itopen.it
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200929/74f7215e/attachment.html>


More information about the QGIS-Developer mailing list