refactor: replace remaining NULL
with nullptr
(#40053)
refactor: use nullptr everywhere
This commit is contained in:
parent
9d0e6d09f0
commit
04b2ba84cd
34 changed files with 98 additions and 93 deletions
|
@ -25,7 +25,8 @@ NodeBindingsWin::NodeBindingsWin(BrowserEnvironment browser_env)
|
|||
|
||||
if (event_loop->iocp && event_loop->iocp != INVALID_HANDLE_VALUE)
|
||||
CloseHandle(event_loop->iocp);
|
||||
event_loop->iocp = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 2);
|
||||
event_loop->iocp =
|
||||
CreateIoCompletionPort(INVALID_HANDLE_VALUE, nullptr, 0, 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -44,7 +45,7 @@ void NodeBindingsWin::PollEvents() {
|
|||
timeout);
|
||||
|
||||
// Give the event back so libuv can deal with it.
|
||||
if (overlapped != NULL)
|
||||
if (overlapped != nullptr)
|
||||
PostQueuedCompletionStatus(event_loop->iocp, bytes, key, overlapped);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue