summaryrefslogtreecommitdiffstats
path: root/src/plugins/tls/openssl/qsslcontext_openssl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/tls/openssl/qsslcontext_openssl.cpp')
-rw-r--r--src/plugins/tls/openssl/qsslcontext_openssl.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/plugins/tls/openssl/qsslcontext_openssl.cpp b/src/plugins/tls/openssl/qsslcontext_openssl.cpp
index 75c192bd01d..4e141682d5b 100644
--- a/src/plugins/tls/openssl/qsslcontext_openssl.cpp
+++ b/src/plugins/tls/openssl/qsslcontext_openssl.cpp
@@ -772,8 +772,7 @@ void QSslContext::applyBackendConfig(QSslContext *sslContext)
if (!i.value().canConvert(QMetaType(QMetaType::QByteArray))) {
sslContext->errorCode = QSslError::UnspecifiedError;
sslContext->errorStr = msgErrorSettingBackendConfig(
- QSslSocket::tr("Expecting QByteArray for %1").arg(
- QString::fromUtf8(i.key())));
+ QSslSocket::tr("Expecting QByteArray for %1").arg(i.key()));
return;
}
@@ -786,18 +785,16 @@ void QSslContext::applyBackendConfig(QSslContext *sslContext)
switch (result) {
case 0:
sslContext->errorStr = msgErrorSettingBackendConfig(
- QSslSocket::tr("An error occurred attempting to set %1 to %2").arg(
- QString::fromUtf8(i.key()), QString::fromUtf8(value)));
+ QSslSocket::tr("An error occurred attempting to set %1 to %2")
+ .arg(i.key(), value));
return;
case 1:
sslContext->errorStr = msgErrorSettingBackendConfig(
- QSslSocket::tr("Wrong value for %1 (%2)").arg(
- QString::fromUtf8(i.key()), QString::fromUtf8(value)));
+ QSslSocket::tr("Wrong value for %1 (%2)").arg(i.key(), value));
return;
default:
sslContext->errorStr = msgErrorSettingBackendConfig(
- QSslSocket::tr("Unrecognized command %1 = %2").arg(
- QString::fromUtf8(i.key()), QString::fromUtf8(value)));
+ QSslSocket::tr("Unrecognized command %1 = %2").arg(i.key(), value));
return;
}
}