diff options
| author | 2022-07-22 18:33:38 +0100 | |
|---|---|---|
| committer | 2022-07-22 18:53:21 +0100 | |
| commit | 648f813f8c89e6e7d0ed5bda2c2149bee2babb09 (patch) | |
| tree | 5357669e57bb381c80bfdbd24ed4057a99db8e5b /include/modules/cap.h | |
| parent | Update author list. (diff) | |
Switch from NULL to nullptr.
Diffstat (limited to 'include/modules/cap.h')
| -rw-r--r-- | include/modules/cap.h | 8 |
1 files changed, 4 insertions, 4 deletions
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. |
