QSslSocket - replace NULL with nullptr

Change-Id: I3af7747f424ef7837c9c3d4af3e5cbd14922aeb6
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
bb10
Timur Pocheptsov 2020-10-13 11:13:48 +02:00
parent 12ef5a7344
commit 4c251ac224
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ QList<QSslCertificate> QSslSocketPrivate::systemCaCertificates()
SecCertificateRef cfCert = (SecCertificateRef)CFArrayGetValueAtIndex(cfCerts, i);
QCFType<CFDataRef> derData = SecCertificateCopyData(cfCert);
if (isCaCertificateTrusted(cfCert, dom)) {
if (derData == NULL) {
if (derData == nullptr) {
qCWarning(lcSsl, "Error retrieving a CA certificate from the system store");
} else {
systemCerts << QSslCertificate(QByteArray::fromCFData(derData), QSsl::Der);