From 2466c048e26c09461b4ced2a9dfcf6d87f0e1323 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 3 Dec 2021 13:37:42 +0000 Subject: Consistently use `!foo` instead of `foo == NULL`. --- src/modules/extra/m_ldap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/extra/m_ldap.cpp') diff --git a/src/modules/extra/m_ldap.cpp b/src/modules/extra/m_ldap.cpp index 65aca4348..fd3a40148 100644 --- a/src/modules/extra/m_ldap.cpp +++ b/src/modules/extra/m_ldap.cpp @@ -370,7 +370,7 @@ class LDAPService final void Search(LDAPInterface* i, const std::string& base, const std::string& filter) override { - if (i == NULL) + if (!i) throw LDAPException("No interface"); LDAPSearch* s = new LDAPSearch(this, i, base, searchscope, filter); @@ -413,7 +413,7 @@ class LDAPService final return; } - if (req->message == NULL) + if (!req->message) { return; } -- cgit v1.3.1-10-gc9f91