mark QLatin1Char object as static in QDateTimeParser::parse()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-06-18 20:11:23 +03:00
parent 6570229811
commit c848cd49cb

View file

@ -4605,7 +4605,7 @@ QDateTimeParser::StateNode QDateTimeParser::parse(QString &input, int &cursorPos
end: end:
if (newCurrentValue.isValid()) { if (newCurrentValue.isValid()) {
if (context != FromString && state != Invalid && newCurrentValue < minimum) { if (context != FromString && state != Invalid && newCurrentValue < minimum) {
const QLatin1Char space(' '); static const QLatin1Char space(' ');
if (Q_UNLIKELY(newCurrentValue >= minimum)) if (Q_UNLIKELY(newCurrentValue >= minimum))
qWarning("QDateTimeParser::parse Internal error 3 (%s %s)", qWarning("QDateTimeParser::parse Internal error 3 (%s %s)",
qPrintable(newCurrentValue.toString()), qPrintable(minimum.toString())); qPrintable(newCurrentValue.toString()), qPrintable(minimum.toString()));