From 34304e3100883187ca658b8c983af21549496b43 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 17 Nov 2020 13:24:46 +0100 Subject: Get rid of Q_COMPILER_CONSTEXPR checks Is required now. Change-Id: I62e95929d1649ea1390392230b619bd56d2a0349 Reviewed-by: Lars Knoll --- src/widgets/widgets/qcalendarwidget.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/widgets/widgets') diff --git a/src/widgets/widgets/qcalendarwidget.cpp b/src/widgets/widgets/qcalendarwidget.cpp index e9774aa556..e3adf0a852 100644 --- a/src/widgets/widgets/qcalendarwidget.cpp +++ b/src/widgets/widgets/qcalendarwidget.cpp @@ -829,11 +829,7 @@ class StaticDayOfWeekAssociativeArray { static constexpr int day2idx(Qt::DayOfWeek day) noexcept { return int(day) - 1; } // alt: day % 7 public: constexpr StaticDayOfWeekAssociativeArray() noexcept(noexcept(T())) -#ifdef Q_COMPILER_CONSTEXPR : contained{}, data{} // arrays require uniform initialization -#else - : contained(), data() -#endif {} constexpr bool contains(Qt::DayOfWeek day) const noexcept { return contained[day2idx(day)]; } -- cgit v1.2.3