summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-25 10:37:35 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-25 19:18:30 +0000
commit37b0a9c8a37b057d52ade5f393baf8aac692f0d9 (patch)
treefd0d03b6c47da2e0161a8e0572770d3f8b6893d3 /src
parent5786ac12f0a9901b0ddf7ee3c74cd1e87095306c (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/network/ssl/qasn1element.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/ssl/qasn1element.cpp b/src/network/ssl/qasn1element.cpp
index 7d965e6ac9..93bfdfd0fc 100644
--- a/src/network/ssl/qasn1element.cpp
+++ b/src/network/ssl/qasn1element.cpp
@@ -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]))