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
Giuseppe D'Angelo 2014-09-02 16:50:11 +02:00
parent 627657217e
commit f849583e84
1 changed files with 1 additions and 3 deletions

View File

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