diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-11-17 13:24:46 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-11-17 21:28:11 +0100 |
commit | 34304e3100883187ca658b8c983af21549496b43 (patch) | |
tree | 5c2e8216740e4ad4e9efc6010539c3a6cfbbbf8e /src/gui/painting | |
parent | 1e9dc3ec2f254c711149f8c0376f0403df9b4650 (diff) |
Get rid of Q_COMPILER_CONSTEXPR checks
Is required now.
Change-Id: I62e95929d1649ea1390392230b619bd56d2a0349
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qpixellayout.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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<Format>(); constexpr uchar bWidth = blueWidth<Format>(); constexpr uchar bShift = blueShift<Format>(); -#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); |