- // FIXME this code used to be like this:
- //
- //unsigned int * const data = img.depth() > 8 ?
- // (unsigned int *)img.bits() :
- // (unsigned int *)img.jumpTable();
- //
- // But Qt doc just say use bits...
- unsigned int * const data = (unsigned int *)img.bits();
+ unsigned int *data = img.depth() > 8 ?
+ reinterpret_cast<unsigned int *>(img.bits()) :
+ reinterpret_cast<unsigned int *>(&img.colorTable()[0]);