diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-22 03:29:32 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-23 22:49:58 +0200 |
commit | 2d82cdf670d88f2f5acc7d1b759cf0cbb3f99962 (patch) | |
tree | a6957d0fa3f6cc76e100ae279e389447b5055029 /src/node_crypto_clienthello.h | |
parent | b2b59febe8bf1d411e7d8faacd23789784aac1f0 (diff) | |
download | node-new-2d82cdf670d88f2f5acc7d1b759cf0cbb3f99962.tar.gz |
src: replace NULL with nullptr
Now that we are building with C++11 features enabled, replace use
of NULL with nullptr.
The benefit of using nullptr is that it can never be confused for
an integral type because it does not support implicit conversions
to integral types except boolean - unlike NULL, which is defined
as a literal `0`.
Diffstat (limited to 'src/node_crypto_clienthello.h')
-rw-r--r-- | src/node_crypto_clienthello.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/node_crypto_clienthello.h b/src/node_crypto_clienthello.h index 3ebcead0c3..33048c2a60 100644 --- a/src/node_crypto_clienthello.h +++ b/src/node_crypto_clienthello.h @@ -25,23 +25,23 @@ #include "node.h" #include <stddef.h> // size_t -#include <stdlib.h> // NULL +#include <stdlib.h> // nullptr namespace node { class ClientHelloParser { public: ClientHelloParser() : state_(kEnded), - onhello_cb_(NULL), - onend_cb_(NULL), - cb_arg_(NULL), + onhello_cb_(nullptr), + onend_cb_(nullptr), + cb_arg_(nullptr), session_size_(0), - session_id_(NULL), + session_id_(nullptr), servername_size_(0), - servername_(NULL), + servername_(nullptr), ocsp_request_(0), tls_ticket_size_(0), - tls_ticket_(NULL) { + tls_ticket_(nullptr) { Reset(); } |