aboutsummaryrefslogtreecommitdiff
path: root/src/inspsocket.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/inspsocket.cpp
parentUpdate author list. (diff)
Switch from NULL to nullptr.
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index 545e569e2..71fb493ec 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -37,18 +37,18 @@ static IOHook* GetNextHook(IOHook* hook)
IOHookMiddle* const iohm = IOHookMiddle::ToMiddleHook(hook);
if (iohm)
return iohm->GetNextHook();
- return NULL;
+ return nullptr;
}
BufferedSocket::BufferedSocket()
{
- Timeout = NULL;
+ Timeout = nullptr;
state = I_ERROR;
}
BufferedSocket::BufferedSocket(int newfd)
{
- Timeout = NULL;
+ Timeout = nullptr;
this->fd = newfd;
this->state = I_CONNECTED;
if (HasFd())
@@ -236,7 +236,7 @@ void StreamSocket::DoWrite()
while (hook)
{
ssize_t rv = hook->OnStreamSocketWrite(this, *psendq);
- psendq = NULL;
+ psendq = nullptr;
// rv == 0 means the socket has blocked. Stop trying to send data.
// IOHook has requested unblock notification from the socketengine.
@@ -250,7 +250,7 @@ void StreamSocket::DoWrite()
}
IOHookMiddle* const iohm = IOHookMiddle::ToMiddleHook(hook);
- hook = NULL;
+ hook = nullptr;
if (iohm)
{
psendq = &iohm->GetSendQ();
@@ -397,7 +397,7 @@ bool SocketTimeout::Tick()
ServerInstance->GlobalCulls.AddItem(sock);
}
- this->sock->Timeout = NULL;
+ this->sock->Timeout = nullptr;
delete this;
return false;
}
@@ -499,7 +499,7 @@ IOHook* StreamSocket::GetModHook(Module* mod) const
if (curr->prov->creator == mod)
return curr;
}
- return NULL;
+ return nullptr;
}
IOHook* StreamSocket::GetLastHook() const