From 410837526c940f5ad1c84d60960cdbcb40d97019 Mon Sep 17 00:00:00 2001 From: Popkornium18 Date: Wed, 1 Jul 2020 23:52:34 +0200 Subject: REFAC(server): replace NULL with nullptr This changes all occurances of NULL in the murmur source dir to nullptr. Additionally explicit comparisons with NULL were removed. --- src/murmur/Cert.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/murmur/Cert.cpp') diff --git a/src/murmur/Cert.cpp b/src/murmur/Cert.cpp index 17ceab5f6..52adf638c 100644 --- a/src/murmur/Cert.cpp +++ b/src/murmur/Cert.cpp @@ -28,20 +28,20 @@ bool Server::isKeyForCert(const QSslKey &key, const QSslCertificate &cert) { QByteArray qbaKey = key.toDer(); QByteArray qbaCert = cert.toDer(); - X509 *x509 = NULL; - EVP_PKEY *pkey = NULL; - BIO *mem = NULL; + X509 *x509 = nullptr; + EVP_PKEY *pkey = nullptr; + BIO *mem = nullptr; mem = BIO_new_mem_buf(qbaKey.data(), qbaKey.size()); Q_UNUSED(BIO_set_close(mem, BIO_NOCLOSE)); - pkey = d2i_PrivateKey_bio(mem, NULL); + pkey = d2i_PrivateKey_bio(mem, nullptr); BIO_free(mem); mem = BIO_new_mem_buf(qbaCert.data(), qbaCert.size()); Q_UNUSED(BIO_set_close(mem, BIO_NOCLOSE)); - x509 = d2i_X509_bio(mem, NULL); + x509 = d2i_X509_bio(mem, nullptr); BIO_free(mem); - mem = NULL; + mem = nullptr; if (x509 && pkey && X509_check_private_key(x509, pkey)) { EVP_PKEY_free(pkey); -- cgit v1.2.3