From 34304e3100883187ca658b8c983af21549496b43 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 17 Nov 2020 13:24:46 +0100 Subject: Get rid of Q_COMPILER_CONSTEXPR checks Is required now. Change-Id: I62e95929d1649ea1390392230b619bd56d2a0349 Reviewed-by: Lars Knoll --- src/gui/painting/qpixellayout.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/painting/qpixellayout.cpp b/src/gui/painting/qpixellayout.cpp index c931cc0a09..0b1e736ec8 100644 --- a/src/gui/painting/qpixellayout.cpp +++ b/src/gui/painting/qpixellayout.cpp @@ -511,9 +511,7 @@ static void QT_FASTCALL rbSwap(uchar *dst, const uchar *src, int count) constexpr uchar gShift = greenShift(); constexpr uchar bWidth = blueWidth(); constexpr uchar bShift = blueShift(); -#ifdef Q_COMPILER_CONSTEXPR static_assert(rWidth == bWidth); -#endif constexpr uint redBlueMask = (1 << rWidth) - 1; constexpr uint alphaGreenMask = (((1 << aWidth) - 1) << aShift) | (((1 << gWidth) - 1) << gShift); -- cgit v1.2.3