qbmphandler: use const more
to avoid implicit detach Change-Id: Ic07746b2715a2a804f20db772e63d3cb389ee581 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
f74fd727e1
commit
a5e27d022d
@ -608,7 +608,7 @@ bool qt_write_dib(QDataStream &s, const QImage &image, int bpl, int bpl_bmp, int
|
||||
if (image.depth() != 32) { // write color table
|
||||
uchar *color_table = new uchar[4*image.colorCount()];
|
||||
uchar *rgb = color_table;
|
||||
QList<QRgb> c = image.colorTable();
|
||||
const QList<QRgb> c = image.colorTable();
|
||||
for (int i = 0; i < image.colorCount(); i++) {
|
||||
*rgb++ = qBlue (c[i]);
|
||||
*rgb++ = qGreen(c[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user