Make sure that QPixelFormat is constexpr
by declaring the array of formats constexpr too. Change-Id: I5c8e23ef9dc0fcac9c246f48dbee24c390d4583c Reviewed-by: Marc Mutz <marc.mutz@kdab.com>bb10
parent
088e9bbb4b
commit
fa31f9761a
|
|
@ -4656,7 +4656,7 @@ QDebug operator<<(QDebug dbg, const QImage &i)
|
|||
\sa textKeys()
|
||||
*/
|
||||
|
||||
static const QPixelFormat pixelformats[] = {
|
||||
static Q_CONSTEXPR QPixelFormat pixelformats[] = {
|
||||
//QImage::Format_Invalid:
|
||||
QPixelFormat(),
|
||||
//QImage::Format_Mono:
|
||||
|
|
|
|||
Loading…
Reference in New Issue