aboutsummaryrefslogtreecommitdiff
path: root/include/inspircd.h
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 /include/inspircd.h
parentUpdate author list. (diff)
Switch from NULL to nullptr.
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 7cdad2e31..7883d9db6 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -399,8 +399,8 @@ public:
* @param mask The glob pattern to match against.
* @param map The character map to use when matching.
*/
- static bool Match(const std::string& str, const std::string& mask, const unsigned char* map = NULL);
- static bool Match(const char* str, const char* mask, const unsigned char* map = NULL);
+ static bool Match(const std::string& str, const std::string& mask, const unsigned char* map = nullptr);
+ static bool Match(const char* str, const char* mask, const unsigned char* map = nullptr);
/** Match two strings using pattern matching, optionally, with a map
* to check case against (may be NULL). If map is null, match will be case insensitive.
@@ -409,8 +409,8 @@ public:
* @param mask The glob or CIDR pattern to match against.
* @param map The character map to use when matching.
*/
- static bool MatchCIDR(const std::string& str, const std::string& mask, const unsigned char* map = NULL);
- static bool MatchCIDR(const char* str, const char* mask, const unsigned char* map = NULL);
+ static bool MatchCIDR(const std::string& str, const std::string& mask, const unsigned char* map = nullptr);
+ static bool MatchCIDR(const char* str, const char* mask, const unsigned char* map = nullptr);
/** Matches a hostname and IP against a space delimited list of hostmasks.
* @param masks The space delimited masks to match against.
@@ -504,7 +504,7 @@ public:
* @param utc True to convert the time to string as-is, false to convert it to local time first.
* @return A string representing the given date/time.
*/
- static std::string TimeString(time_t curtime, const char* format = NULL, bool utc = false);
+ static std::string TimeString(time_t curtime, const char* format = nullptr, bool utc = false);
/** Compare two strings in a timing-safe way. If the lengths of the strings differ, the function
* returns false immediately (leaking information about the length), otherwise it compares each