QSslSocketBackendPrivate: Remove QString warnings
Change-Id: I2ab758fe61ea1ba9b84672ac05ac219b85e3de6a Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>bb10
parent
e21bf5e6b3
commit
8beddf8328
|
|
@ -600,7 +600,7 @@ void QSslSocketBackendPrivate::startClientEncryption()
|
|||
// Error description/code were set, 'error' emitted
|
||||
// by initSslContext, but OpenSSL socket also sets error
|
||||
// emits a signal twice, so ...
|
||||
setErrorAndEmit(QAbstractSocket::SslInternalError, "Unable to init SSL Context");
|
||||
setErrorAndEmit(QAbstractSocket::SslInternalError, QStringLiteral("Unable to init SSL Context"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -613,7 +613,7 @@ void QSslSocketBackendPrivate::startServerEncryption()
|
|||
// Error description/code were set, 'error' emitted
|
||||
// by initSslContext, but OpenSSL socket also sets error
|
||||
// emits a signal twice, so ...
|
||||
setErrorAndEmit(QAbstractSocket::SslInternalError, "Unable to init SSL Context");
|
||||
setErrorAndEmit(QAbstractSocket::SslInternalError, QStringLiteral("Unable to init SSL Context"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -936,7 +936,7 @@ bool QSslSocketBackendPrivate::initSslContext()
|
|||
|
||||
context.reset(qt_createSecureTransportContext(mode));
|
||||
if (!context) {
|
||||
setErrorAndEmit(QAbstractSocket::SslInternalError, "SSLCreateContext failed");
|
||||
setErrorAndEmit(QAbstractSocket::SslInternalError, QStringLiteral("SSLCreateContext failed"));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -964,7 +964,7 @@ bool QSslSocketBackendPrivate::initSslContext()
|
|||
|
||||
if (!setSessionProtocol()) {
|
||||
destroySslContext();
|
||||
setErrorAndEmit(QAbstractSocket::SslInternalError, "Failed to set protocol version");
|
||||
setErrorAndEmit(QAbstractSocket::SslInternalError, QStringLiteral("Failed to set protocol version"));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -1406,8 +1406,7 @@ bool QSslSocketBackendPrivate::startHandshake()
|
|||
// check protocol version ourselves, as Secure Transport does not enforce
|
||||
// the requested min / max versions.
|
||||
if (!verifySessionProtocol()) {
|
||||
setErrorAndEmit(QAbstractSocket::SslHandshakeFailedError,
|
||||
"Protocol version mismatch");
|
||||
setErrorAndEmit(QAbstractSocket::SslHandshakeFailedError, QStringLiteral("Protocol version mismatch"));
|
||||
plainSocket->disconnectFromHost();
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue