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/threadsocket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/threadsocket.cpp') diff --git a/src/threadsocket.cpp b/src/threadsocket.cpp index 93fae7f65..86b36eac0 100644 --- a/src/threadsocket.cpp +++ b/src/threadsocket.cpp @@ -67,7 +67,7 @@ public: SocketThread::SocketThread() { - socket = NULL; + socket = nullptr; int fd = eventfd(0, EFD_NONBLOCK); if (fd < 0) throw CoreException("Could not create pipe " + std::string(strerror(errno))); @@ -127,7 +127,7 @@ public: SocketThread::SocketThread() { - socket = NULL; + socket = nullptr; int fds[2]; if (pipe(fds)) throw CoreException("Could not create pipe " + std::string(strerror(errno))); -- cgit v1.3.1-10-gc9f91