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

Unified Diff: webrtc/examples/peerconnection/server/main.cc

Issue 2685783014: Replace NULL with nullptr in all C++ files. (Closed)
Patch Set: Fixing android. 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
Index: webrtc/examples/peerconnection/server/main.cc
diff --git a/webrtc/examples/peerconnection/server/main.cc b/webrtc/examples/peerconnection/server/main.cc
index 44f42a659534f31644bd756753108bd52fa26949..437566262fc2d86a19acd608de8fda5ef6f40359 100644
--- a/webrtc/examples/peerconnection/server/main.cc
+++ b/webrtc/examples/peerconnection/server/main.cc
@@ -61,7 +61,7 @@ int main(int argc, char** argv) {
return 0;
}
- int port = strtol((parser.GetFlag("port")).c_str(), NULL, 10);
+ int port = strtol((parser.GetFlag("port")).c_str(), nullptr, 10);
// Abort if the user specifies a port that is outside the allowed
// range [1, 65535].
@@ -95,7 +95,8 @@ int main(int argc, char** argv) {
FD_SET((*i)->socket(), &socket_set);
struct timeval timeout = { 10, 0 };
- if (select(FD_SETSIZE, &socket_set, NULL, NULL, &timeout) == SOCKET_ERROR) {
+ if (select(FD_SETSIZE, &socket_set, nullptr, nullptr, &timeout) ==
+ SOCKET_ERROR) {
printf("select failed\n");
break;
}

Powered by Google App Engine
This is Rietveld 408576698