Skip to content

Commit

Permalink
cleanup lightweight time constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteven4 committed Sep 29, 2024
1 parent 75a0274 commit 88bc52f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1046,13 +1046,8 @@ constexpr double unknown_alt = -99999999.0;
constexpr int unknown_color = -1;

#ifdef LIGHTWEIGHT_TIMEZONES_SUPPORTED
// error: the type ‘const QTimeZone’ of ‘constexpr’ variable ‘QtLocalTime’ is not literal
// note: ‘QTimeZone’ is not literal because:
// note: ‘QTimeZone’ does not have ‘constexpr’ destructor
//constexpr QTimeZone QtLocalTime = QTimeZone::LocalTime;
//constexpr QTimeZone QtUTC = QTimeZone::UTC;
#define QtLocalTime QTimeZone::LocalTime
#define QtUTC QTimeZone::UTC
constexpr QTimeZone::Initialization QtLocalTime = QTimeZone::LocalTime;
constexpr QTimeZone::Initialization QtUTC = QTimeZone::UTC;
#else
constexpr Qt::TimeSpec QtLocalTime = Qt::LocalTime;
constexpr Qt::TimeSpec QtUTC = Qt::UTC;
Expand Down

0 comments on commit 88bc52f

Please sign in to comment.