From 68198de4dbe71ae97dc733606871f51bde804c1e Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 19 Aug 2020 19:11:37 +0200 Subject: Use C++17 [[maybe_unused]] In some places needs to be ordered before const/constexpr though. Change-Id: I57a521ac0ad22b5a018761c4d52befbef69d64c0 Reviewed-by: Thiago Macieira --- src/gui/painting/qrgb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/painting/qrgb.h') 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); } -- cgit v1.2.3