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>
bb10
Wang Wei 2020-09-07 16:12:42 +08:00
parent fc3d10d37a
commit 2f0f74498a
1 changed files with 1 additions and 1 deletions

View File

@ -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(