Skip to content

Commit 139cab6

Browse files
committed
use nullptr instead of 0
1 parent aace1a9 commit 139cab6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/ESP8266WiFi/src/include/ClientContext.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ClientContext
5858
tcp_err(_pcb, NULL);
5959
tcp_poll(_pcb, NULL, 0);
6060
tcp_abort(_pcb);
61-
_pcb = 0;
61+
_pcb = nullptr;
6262
}
6363
return ERR_ABRT;
6464
}
@@ -79,7 +79,7 @@ class ClientContext
7979
tcp_abort(_pcb);
8080
err = ERR_ABRT;
8181
}
82-
_pcb = 0;
82+
_pcb = nullptr;
8383
}
8484
return err;
8585
}
@@ -536,7 +536,7 @@ class ClientContext
536536
tcp_sent(_pcb, NULL);
537537
tcp_recv(_pcb, NULL);
538538
tcp_err(_pcb, NULL);
539-
_pcb = NULL;
539+
_pcb = nullptr;
540540
_notify_error();
541541
}
542542

0 commit comments

Comments
 (0)