summaryrefslogtreecommitdiff
path: root/src/inspector_socket_server.cc
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-11-27 09:19:11 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2017-12-01 07:45:00 +0100
commite32bbbf4d7adfdb22822c39991ea0e972a0a3453 (patch)
treef2da83e4c0047e757c52cfc5de1f0c49fce922fb /src/inspector_socket_server.cc
parent85e34b0c73794d3a241aa9e0c6139292f445c30a (diff)
downloadandroid-node-v8-e32bbbf4d7adfdb22822c39991ea0e972a0a3453.tar.gz
android-node-v8-e32bbbf4d7adfdb22822c39991ea0e972a0a3453.tar.bz2
android-node-v8-e32bbbf4d7adfdb22822c39991ea0e972a0a3453.zip
src: use nullptr instead of NULL
PR-URL: https://github.com/nodejs/node/pull/17373 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/inspector_socket_server.cc')
-rw-r--r--src/inspector_socket_server.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspector_socket_server.cc b/src/inspector_socket_server.cc
index cdc907ee9b..958c41a654 100644
--- a/src/inspector_socket_server.cc
+++ b/src/inspector_socket_server.cc
@@ -94,7 +94,7 @@ void PrintDebuggerReadyMessage(const std::string& host,
int port,
const std::vector<std::string>& ids,
FILE* out) {
- if (out == NULL) {
+ if (out == nullptr) {
return;
}
for (const std::string& id : ids) {
@@ -398,7 +398,7 @@ bool InspectorSocketServer::Start() {
int err = uv_getaddrinfo(loop_, &req, nullptr, host_.c_str(),
port_string.c_str(), &hints);
if (err < 0) {
- if (out_ != NULL) {
+ if (out_ != nullptr) {
fprintf(out_, "Unable to resolve \"%s\": %s\n", host_.c_str(),
uv_strerror(err));
}
@@ -416,7 +416,7 @@ bool InspectorSocketServer::Start() {
// We only show error if we failed to start server on all addresses. We only
// show one error, for the last address.
if (server_sockets_.empty()) {
- if (out_ != NULL) {
+ if (out_ != nullptr) {
fprintf(out_, "Starting inspector on %s:%d failed: %s\n",
host_.c_str(), port_, uv_strerror(err));
fflush(out_);