summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-11-22 16:02:16 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-11-23 21:11:42 +0100
commit910203afb489e872771ae0bb16876d0c26986624 (patch)
treecd522d9b4e24fd49483ab6015cbb85612658f21a /src/widgets/kernel
parentf9d172f5a191a4e0e13923a6a1d31e86107bc75e (diff)
Drop a [[maybe_unused]] on a variable
Turn it into an inline variable. Change-Id: Iab7fa2d53259ced0b1a78bf7368e0e862ba2c799 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/kernel')
-rw-r--r--src/widgets/kernel/qlayoutitem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qlayoutitem.h b/src/widgets/kernel/qlayoutitem.h
index a0d24ccbe4..a26d3949dc 100644
--- a/src/widgets/kernel/qlayoutitem.h
+++ b/src/widgets/kernel/qlayoutitem.h
@@ -49,7 +49,7 @@
QT_BEGIN_NAMESPACE
-[[maybe_unused]] static const int QLAYOUTSIZE_MAX = INT_MAX/256/16;
+inline constexpr int QLAYOUTSIZE_MAX = INT_MAX/256/16;
class QLayout;
class QLayoutItem;