QSslSocket: remove a useless assignment
I was actually wondering if the test always succeeds (i.e. should be turned into a Q_ASSERT), but I don't know the codebase enough to justify such a change. Change-Id: Id01b8de7244428e9b1c240dc365c66eeef0d6111 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Andrew Knight <andrew.knight@digia.com>bb10
parent
627657217e
commit
f849583e84
|
|
@ -2135,10 +2135,8 @@ void QSslConfigurationPrivate::deepCopyDefaultConfiguration(QSslConfigurationPri
|
|||
QMutexLocker locker(&globalData()->mutex);
|
||||
const QSslConfigurationPrivate *global = globalData()->config.constData();
|
||||
|
||||
if (!global) {
|
||||
ptr = 0;
|
||||
if (!global)
|
||||
return;
|
||||
}
|
||||
|
||||
ptr->ref.store(1);
|
||||
ptr->peerCertificate = global->peerCertificate;
|
||||
|
|
|
|||
Loading…
Reference in New Issue