Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: webrtc/base/asyncudpsocket.cc

Issue 2718663005: Replace NULL with nullptr or null in webrtc/base/. (Closed)
Patch Set: Fixing Windows and formatting issues. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/asyncudpsocket.h ('k') | webrtc/base/base64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/asyncudpsocket.cc
diff --git a/webrtc/base/asyncudpsocket.cc b/webrtc/base/asyncudpsocket.cc
index 3ce629cc0fe5fbc11766b0dd3e30e03b321167b9..0bccb73836af0bbc4a7f73f3788c8924fad04dce 100644
--- a/webrtc/base/asyncudpsocket.cc
+++ b/webrtc/base/asyncudpsocket.cc
@@ -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);
}
« no previous file with comments | « webrtc/base/asyncudpsocket.h ('k') | webrtc/base/base64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698