From 9b3ed7ef1d0d06ed6980869497beea0e7705d3a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 29 Dec 2020 15:17:31 +0100 Subject: [PATCH] Fixed Qt6 Release build --- src/GUI/timezoneinfo.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GUI/timezoneinfo.h b/src/GUI/timezoneinfo.h index e2704c24..7bb5398c 100644 --- a/src/GUI/timezoneinfo.h +++ b/src/GUI/timezoneinfo.h @@ -68,13 +68,12 @@ inline QDataStream &operator>>(QDataStream &in, TimeZoneInfo &info) return in; } -#ifndef QT_NO_DEBUG +// Required in Qt6 even in release builds inline QDebug operator<<(QDebug dbg, const TimeZoneInfo &info) { dbg.nospace() << "TimeZoneInfo(" << static_cast(info._type) << ", " << info._customZone << ")"; return dbg.space(); } -#endif // QT_NO_DEBUG #endif // TIMEZONEINFO_H