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/stream_wrap.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/stream_wrap.h')
| -rw-r--r-- | src/stream_wrap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream_wrap.h b/src/stream_wrap.h index adf457e2a1..3c058d26f8 100644 --- a/src/stream_wrap.h +++ b/src/stream_wrap.h @@ -164,7 +164,7 @@ class StreamWrap : public HandleWrap { if (!callbacks_gc_ && callbacks_ != &default_callbacks_) { delete callbacks_; } - callbacks_ = NULL; + callbacks_ = nullptr; } void StateChange() { } |
