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
Thiago Macieira 2014-08-05 14:16:30 -03:00 committed by Marc Mutz
parent 088e9bbb4b
commit fa31f9761a
1 changed files with 1 additions and 1 deletions

View File

@ -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: