summaryrefslogtreecommitdiffstats
path: root/src/network/ssl
diff options
context:
space:
mode:
authorWang Wei <wangwei@uniontech.com>2020-09-07 16:12:42 +0800
committerWang Wei <wangwei@uniontech.com>2020-09-08 14:02:15 +0800
commit2f0f74498a3eb00950688750baccc846d4e11f6b (patch)
tree83a43fffd8f8093e70fcfb6cde9072c07d12ace5 /src/network/ssl
parentfc3d10d37a1396bc6cc18fe4b614af1f8fad6873 (diff)
Don't use deprecated function: QVariant::canConvert(int targetTypeId)
Remove compile warning for -Wdeprecated-declarations. Change-Id: I747c8a390f26cfc4626e40c4684034c394bbf3c9 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Lars Schmertmann <lars.schmertmann@governikus.de>
Diffstat (limited to 'src/network/ssl')
-rw-r--r--src/network/ssl/qsslcontext_openssl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/ssl/qsslcontext_openssl.cpp b/src/network/ssl/qsslcontext_openssl.cpp
index 057f74b82a..6eed354b9e 100644
--- a/src/network/ssl/qsslcontext_openssl.cpp
+++ b/src/network/ssl/qsslcontext_openssl.cpp
@@ -710,7 +710,7 @@ void QSslContext::applyBackendConfig(QSslContext *sslContext)
if (i.key() == "Qt-OCSP-response") // This never goes to SSL_CONF_cmd().
continue;
- if (!i.value().canConvert(QMetaType::QByteArray)) {
+ if (!i.value().canConvert(QMetaType(QMetaType::QByteArray))) {
sslContext->errorCode = QSslError::UnspecifiedError;
sslContext->errorStr = msgErrorSettingBackendConfig(
QSslSocket::tr("Expecting QByteArray for %1").arg(