QPixmap/X11: fix compilation with C++17
C++11 deprecated 'register' as a storage specifier, and C++17 removes
it.
Fixes GCC 7.0 warning-turned-error:
nativepainting/qpixmap_x11.cpp:2013:25: error: ISO C++1z does not allow ‘register’ storage class specifier [-Werror=register]
Amends 07942adb77.
Change-Id: Ideb674d903e5e6eb5ae92cfc3979ff59b243520c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
bb10
parent
a611a9f537
commit
3cb4bbfc26
|
|
@ -2010,7 +2010,7 @@ QImage QX11PlatformPixmap::toImage(const QXImageWrapper &xiWrapper, const QRect
|
|||
image.setColor(0, qRgb(255,255,255));
|
||||
image.setColor(1, qRgb(0,0,0));
|
||||
} else if (!trucol) { // pixmap with colormap
|
||||
register uchar *p;
|
||||
uchar *p;
|
||||
uchar *end;
|
||||
uchar use[256]; // pixel-in-use table
|
||||
uchar pix[256]; // pixel translation table
|
||||
|
|
|
|||
Loading…
Reference in New Issue