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_gateway.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_gateway.cpp') diff --git a/src/modules/m_gateway.cpp b/src/modules/m_gateway.cpp index 15e827507..448caefc1 100644 --- a/src/modules/m_gateway.cpp +++ b/src/modules/m_gateway.cpp @@ -170,7 +170,7 @@ public: static bool ParseIP(const std::string& in, irc::sockets::sockaddrs& out) { - const char* ident = NULL; + const char* ident = nullptr; if (in.length() == 8) { // The ident is an IPv4 address encoded in hexadecimal with two characters @@ -195,7 +195,7 @@ public: // Try to convert the IP address to a string. If this fails then the user // does not have an IPv4 address in their ident. errno = 0; - unsigned long address = strtoul(ident, NULL, 16); + unsigned long address = strtoul(ident, nullptr, 16); if (errno) return false; -- cgit v1.3.1-10-gc9f91