[Digikam-devel] Magic number hunt

Gilles Caulier caulier.gilles at gmail.com
Mon Oct 26 19:40:31 GMT 2009


set all constants in global.h and include it to dimg.h. This one is
used everywhere.

note : in kipi-plugins, i can find a lots of kdebug() without debug space.

Gilles.

2009/10/26 Johannes Wienke <languitar at semipol.de>:
> Hi,
>
> now that I can post on this list... ;)
>
> I noticed that we got approx. 3 billion lines containing the magic numbers
> 255, 256, 65535 and 65536. We should move them to some constants, but I
> don't know to which header. For the digikam core there is the globals.h, but
> as far as I can see, this is not included in the image editor plugins. Any
> ideas where to place these constants?
>
> Johannes
>
>
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
>



More information about the Digikam-devel mailing list