From 648f813f8c89e6e7d0ed5bda2c2149bee2babb09 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 22 Jul 2022 18:33:38 +0100 Subject: Switch from NULL to nullptr. --- include/modules/cap.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/modules/cap.h') diff --git a/include/modules/cap.h b/include/modules/cap.h index 77145acd6..77434642a 100644 --- a/include/modules/cap.h +++ b/include/modules/cap.h @@ -143,7 +143,7 @@ namespace Cap void Unregister() { bit = 0; - extitem = NULL; + extitem = nullptr; } Ext AddToMask(Ext mask) const { return (mask | GetMask()); } @@ -243,7 +243,7 @@ namespace Cap * The cap must be active and the manager must be available for a cap to be registered. * @return True if the cap is registered in the manager, false otherwise */ - bool IsRegistered() const { return (extitem != NULL); } + bool IsRegistered() const { return (extitem != nullptr); } /** Get the CAP negotiation protocol version of a user. * The cap must be registered for this to return anything other than CAP_LEGACY. @@ -281,7 +281,7 @@ namespace Cap */ virtual const std::string* GetValue(LocalUser* user) const { - return NULL; + return nullptr; } }; @@ -304,7 +304,7 @@ namespace Cap /** Retrieves the underlying cap. */ operator const Cap::Capability*() const { - return ref ? *ref : NULL; + return ref ? *ref : nullptr; } /** Check whether a user has the referenced capability turned on. -- cgit v1.3.1-10-gc9f91