Fix deprecation warning by not going through QChar
mValue is a QByteArray, so no need to expand data to UTF16 just to compare it to a Latin1 character. Change-Id: Ib3c8770867cd5509bb4c2ac5e45aabca577b3bba Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>bb10
parent
5786ac12f0
commit
37b0a9c8a3
|
|
@ -241,9 +241,9 @@ QDateTime QAsn1Element::toDateTime() const
|
|||
|
||||
// QDateTime::fromString is lenient and accepts +- signs in front
|
||||
// of the year; but ASN.1 doesn't allow them.
|
||||
const auto isAsciiDigit = [](QChar c)
|
||||
const auto isAsciiDigit = [](char c)
|
||||
{
|
||||
return c >= QLatin1Char('0') && c <= QLatin1Char('9');
|
||||
return c >= '0' && c <= '9';
|
||||
};
|
||||
|
||||
if (!isAsciiDigit(mValue[0]))
|
||||
|
|
|
|||
Loading…
Reference in New Issue