From 022e62b829df5528396ca22ef0ba9d8c913794b2 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 14 Apr 2020 11:26:03 +0200 Subject: [PATCH] [licale] Fix build with DEBUG_TIMEZONES - QLatin1String isn't a constexpr; the whole ZONE is a bit derpy, so let's just #define it. --- src/modules/locale/timezonewidget/timezonewidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/locale/timezonewidget/timezonewidget.cpp b/src/modules/locale/timezonewidget/timezonewidget.cpp index 400af0841..40cc5c437 100644 --- a/src/modules/locale/timezonewidget/timezonewidget.cpp +++ b/src/modules/locale/timezonewidget/timezonewidget.cpp @@ -37,7 +37,7 @@ constexpr static double MATH_PI = 3.14159265; #ifdef DEBUG_TIMEZONES // Adds a label to the timezone with this name -constexpr static QLatin1String ZONE_NAME( "zone" ); +#define ZONE_NAME QStringLiteral( "zone" ) #endif TimeZoneWidget::TimeZoneWidget( QWidget* parent )