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. --- src/modules/m_callerid.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_callerid.cpp') 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 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); } -- cgit v1.3.1-10-gc9f91