Make RGB_MASK inline constexpr
As per comment on API review. Change-Id: If4bd234372ebad0e3bfac41642981a612fd165bd Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
517c885239
commit
233b9d7c5f
@ -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); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user