diff options
Diffstat (limited to 'src/corelib/time/qdatetimeparser.cpp')
-rw-r--r-- | src/corelib/time/qdatetimeparser.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/corelib/time/qdatetimeparser.cpp b/src/corelib/time/qdatetimeparser.cpp index a90fb46046..ab784912e5 100644 --- a/src/corelib/time/qdatetimeparser.cpp +++ b/src/corelib/time/qdatetimeparser.cpp @@ -1441,8 +1441,7 @@ QDateTimeParser::scanString(const QDateTime &defaultValue, bool fixup) const // Don't care about date or spec, so pick a safe spec: return StateNode(QDateTime(date, time, Qt::UTC), state, padding, conflicts); default: - Q_UNREACHABLE(); - return StateNode(); + Q_UNREACHABLE_RETURN(StateNode()); } } @@ -2253,8 +2252,7 @@ QString QDateTimeParser::getAmPmText(AmPm ap, Case cs) const case LowerCase: return raw.toLower(); case NativeCase: return raw; } - Q_UNREACHABLE(); - return raw; + Q_UNREACHABLE_RETURN(raw); } /* |