aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_callerid.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-07-22 18:33:38 +0100
committerGravatar Sadie Powell2022-07-22 18:53:21 +0100
commit648f813f8c89e6e7d0ed5bda2c2149bee2babb09 (patch)
tree5357669e57bb381c80bfdbd24ed4057a99db8e5b /src/modules/m_callerid.cpp
parentUpdate author list. (diff)
Switch from NULL to nullptr.
Diffstat (limited to 'src/modules/m_callerid.cpp')
-rw-r--r--src/modules/m_callerid.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp
index 60cfba367..cb51f458d 100644
--- a/src/modules/m_callerid.cpp
+++ b/src/modules/m_callerid.cpp
@@ -102,7 +102,7 @@ struct CallerIDExtInfo final
void* old = GetRaw(container);
if (old)
- this->Delete(NULL, old);
+ this->Delete(nullptr, old);
callerid_data* dat = new callerid_data;
SetRaw(container, dat);
@@ -164,7 +164,7 @@ class CommandAccept final
*/
typedef std::pair<User*, bool> ACCEPTAction;
- static ACCEPTAction GetTargetAndAction(std::string& tok, User* cmdfrom = NULL)
+ static ACCEPTAction GetTargetAndAction(std::string& tok, User* cmdfrom = nullptr)
{
bool remove = (tok[0] == '-');
if ((remove) || (tok[0] == '+'))
@@ -177,7 +177,7 @@ class CommandAccept final
target = ServerInstance->Users.FindNick(tok);
if ((!target) || (target->registered != REG_ALL) || (target->quitting))
- target = NULL;
+ target = nullptr;
return std::make_pair(target, !remove);
}