summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qrgb.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-02 10:47:47 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-03 11:58:08 +0200
commitc82f73666d87549e5884ddcd253ec3561d840b9b (patch)
tree96eff624e0add180490d014abce92fccf9542f5b /src/gui/painting/qrgb.h
parent889d40ebe2d9d0e92caea2749608720f7c088173 (diff)
Replace Q_DECL_UNUSED with [[maybe_unused]]
Use C++17 attribute directly Change-Id: Id853e7a5117065e4adb549f81303c1820fe198ce 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 562b763aa7..8218ecd7ed 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
-Q_DECL_UNUSED const QRgb RGB_MASK = 0x00ffffff; // masks RGB values
+[[maybe_unused]] const QRgb RGB_MASK = 0x00ffffff; // masks RGB values
inline constexpr int qRed(QRgb rgb) // get red part of RGB
{ return ((rgb >> 16) & 0xff); }