aboutsummaryrefslogtreecommitdiff
path: root/src/xline.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/xline.cpp
parentUpdate author list. (diff)
Switch from NULL to nullptr.
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index e8b2f2b6a..6b3beea9a 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -192,7 +192,7 @@ XLineLookup* XLineManager::GetAll(const std::string &type)
ContainerIter n = lookup_lines.find(type);
if (n == lookup_lines.end())
- return NULL;
+ return nullptr;
LookupIter safei;
const time_t current = ServerInstance->Time();
@@ -363,7 +363,7 @@ XLine* XLineManager::MatchesLine(const std::string &type, User* user)
ContainerIter x = lookup_lines.find(type);
if (x == lookup_lines.end())
- return NULL;
+ return nullptr;
const time_t current = ServerInstance->Time();
@@ -389,7 +389,7 @@ XLine* XLineManager::MatchesLine(const std::string &type, User* user)
i = safei;
}
- return NULL;
+ return nullptr;
}
XLine* XLineManager::MatchesLine(const std::string &type, const std::string &pattern)
@@ -397,7 +397,7 @@ XLine* XLineManager::MatchesLine(const std::string &type, const std::string &pat
ContainerIter x = lookup_lines.find(type);
if (x == lookup_lines.end())
- return NULL;
+ return nullptr;
const time_t current = ServerInstance->Time();
@@ -424,7 +424,7 @@ XLine* XLineManager::MatchesLine(const std::string &type, const std::string &pat
i = safei;
}
- return NULL;
+ return nullptr;
}
// removes lines that have expired
@@ -766,7 +766,7 @@ XLineFactory* XLineManager::GetFactory(const std::string &type)
XLineFactMap::iterator n = line_factory.find(type);
if (n == line_factory.end())
- return NULL;
+ return nullptr;
return n->second;
}