De-pessimize QTlsBackendOpenSSL::clearErrorQueue()
We don't need to format the error messages into a QString just to clear the error queue. Just looping over q_ERR_get_error() does the trick, too, and isn't less readable. Pick-to: 6.3 Change-Id: Idc42f8c4ae4374d952cb357fca6c0fca0e04d086 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
adc025cef6
commit
d1c31191a0
@ -86,8 +86,8 @@ void QTlsBackendOpenSSL::logAndClearErrorQueue()
|
|||||||
|
|
||||||
void QTlsBackendOpenSSL::clearErrorQueue()
|
void QTlsBackendOpenSSL::clearErrorQueue()
|
||||||
{
|
{
|
||||||
const auto errs = getErrorsFromOpenSsl();
|
while (q_ERR_get_error())
|
||||||
Q_UNUSED(errs);
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QTlsBackendOpenSSL::ensureLibraryLoaded()
|
bool QTlsBackendOpenSSL::ensureLibraryLoaded()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user