Merge "Don't combine enum values from different enum types"

This commit is contained in:
Volker Hilsheimer 2021-03-17 13:32:23 +01:00 committed by Qt CI Bot
commit eb3395328a

View File

@ -2937,8 +2937,8 @@ static void checkValidDateTime(QDateTimeData &d)
static void setTimeSpec(QDateTimeData &d, Qt::TimeSpec spec, int offsetSeconds)
{
auto status = getStatus(d);
status &= ~(QDateTimePrivate::ValidDateTime | QDateTimePrivate::DaylightMask |
QDateTimePrivate::TimeSpecMask);
status &= ~(uint(QDateTimePrivate::ValidDateTime) | uint(QDateTimePrivate::DaylightMask) |
uint(QDateTimePrivate::TimeSpecMask));
switch (spec) {
case Qt::OffsetFromUTC: