summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qrgb.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-08-19 19:11:37 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-09-06 18:31:43 +0200
commit68198de4dbe71ae97dc733606871f51bde804c1e (patch)
treedf68d428265f876367c7cd54d5e2c14f007c1964 /src/gui/painting/qrgb.h
parentd3ff95dcb84861e8f42b480910d822b4ca8715b1 (diff)
Use C++17 [[maybe_unused]]
In some places needs to be ordered before const/constexpr though. Change-Id: I57a521ac0ad22b5a018761c4d52befbef69d64c0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/painting/qrgb.h')
-rw-r--r--src/gui/painting/qrgb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qrgb.h b/src/gui/painting/qrgb.h
index c6caa62c75..562b763aa7 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
-const Q_DECL_UNUSED QRgb RGB_MASK = 0x00ffffff; // masks RGB values
+Q_DECL_UNUSED const QRgb RGB_MASK = 0x00ffffff; // masks RGB values
inline constexpr int qRed(QRgb rgb) // get red part of RGB
{ return ((rgb >> 16) & 0xff); }