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/async-wrap-inl.h | |
parent | b2b59febe8bf1d411e7d8faacd23789784aac1f0 (diff) | |
download | android-node-v8-2d82cdf670d88f2f5acc7d1b759cf0cbb3f99962.tar.gz android-node-v8-2d82cdf670d88f2f5acc7d1b759cf0cbb3f99962.tar.bz2 android-node-v8-2d82cdf670d88f2f5acc7d1b759cf0cbb3f99962.zip |
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/async-wrap-inl.h')
-rw-r--r-- | src/async-wrap-inl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/async-wrap-inl.h b/src/async-wrap-inl.h index 4cbf8f493b..6fad7eac36 100644 --- a/src/async-wrap-inl.h +++ b/src/async-wrap-inl.h @@ -100,7 +100,7 @@ inline v8::Handle<v8::Value> AsyncWrap::MakeDomainCallback( v8::Local<v8::Function> enter = domain->Get(env()->enter_string()).As<v8::Function>(); if (enter->IsFunction()) { - enter->Call(domain, 0, NULL); + enter->Call(domain, 0, nullptr); if (try_catch.HasCaught()) return Undefined(env()->isolate()); } @@ -116,7 +116,7 @@ inline v8::Handle<v8::Value> AsyncWrap::MakeDomainCallback( v8::Local<v8::Function> exit = domain->Get(env()->exit_string()).As<v8::Function>(); if (exit->IsFunction()) { - exit->Call(domain, 0, NULL); + exit->Call(domain, 0, nullptr); if (try_catch.HasCaught()) return Undefined(env()->isolate()); } @@ -147,7 +147,7 @@ inline v8::Handle<v8::Value> AsyncWrap::MakeDomainCallback( tick_info->set_in_tick(true); - env()->tick_callback_function()->Call(process, 0, NULL); + env()->tick_callback_function()->Call(process, 0, nullptr); tick_info->set_in_tick(false); @@ -214,7 +214,7 @@ inline v8::Handle<v8::Value> AsyncWrap::MakeCallback( tick_info->set_in_tick(true); - env()->tick_callback_function()->Call(process, 0, NULL); + env()->tick_callback_function()->Call(process, 0, nullptr); tick_info->set_in_tick(false); |