diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-02 16:21:03 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-02 16:46:58 +0100 |
commit | 233b9d7c5fac2abdad43c4ec90eab54e7791d095 (patch) | |
tree | f4c7cf024be1640fc36b0700d2147d7b2d1c5418 /src/gui/painting | |
parent | 517c88523907bc8e7d007f64bf96e6447dfc4303 (diff) |
Make RGB_MASK inline constexpr
As per comment on API review.
Change-Id: If4bd234372ebad0e3bfac41642981a612fd165bd
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qrgb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qrgb.h b/src/gui/painting/qrgb.h index 8218ecd7ed..5635b69ec4 100644 --- a/src/gui/painting/qrgb.h +++ b/src/gui/painting/qrgb.h @@ -49,7 +49,7 @@ QT_BEGIN_NAMESPACE typedef unsigned int QRgb; // RGB triplet // non-namespaced Qt global variable -[[maybe_unused]] const QRgb RGB_MASK = 0x00ffffff; // masks RGB values + inline constexpr QRgb RGB_MASK = 0x00ffffff; // masks RGB values inline constexpr int qRed(QRgb rgb) // get red part of RGB { return ((rgb >> 16) & 0xff); } |