From 233b9d7c5fac2abdad43c4ec90eab54e7791d095 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Mon, 2 Nov 2020 16:21:03 +0100 Subject: Make RGB_MASK inline constexpr As per comment on API review. Change-Id: If4bd234372ebad0e3bfac41642981a612fd165bd Reviewed-by: Giuseppe D'Angelo --- src/gui/painting/qrgb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3