Replace NULL with nullptr or null in webrtc/base/.
BUG=webrtc:7147 Review-Url: https://codereview.webrtc.org/2718663005 Cr-Commit-Position: refs/heads/master@{#16878}
This commit is contained in:
@ -22,7 +22,7 @@ AsyncUDPSocket* AsyncUDPSocket::Create(
|
||||
std::unique_ptr<AsyncSocket> owned_socket(socket);
|
||||
if (socket->Bind(bind_address) < 0) {
|
||||
LOG(LS_ERROR) << "Bind() failed with error " << socket->GetError();
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
return new AsyncUDPSocket(owned_socket.release());
|
||||
}
|
||||
@ -32,7 +32,7 @@ AsyncUDPSocket* AsyncUDPSocket::Create(SocketFactory* factory,
|
||||
AsyncSocket* socket =
|
||||
factory->CreateAsyncSocket(bind_address.family(), SOCK_DGRAM);
|
||||
if (!socket)
|
||||
return NULL;
|
||||
return nullptr;
|
||||
return Create(socket, bind_address);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user