diff options
author | ZYSzys <17367077526@163.com> | 2019-02-04 10:38:51 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-02-07 09:22:38 +0300 |
commit | 93e0c6ae8997e0ded6013078efd0ccc652ca2595 (patch) | |
tree | 335126a828eb71730196f0df21998a3eaf0f5328 /src/node_platform.cc | |
parent | 2a212549dc0517f1700db90d66ed5cf09e9513b8 (diff) |
src: use NULL check macros to check nullptr
PR-URL: https://github.com/nodejs/node/pull/25916
Refs: https://github.com/nodejs/node/pull/20914
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'src/node_platform.cc')
-rw-r--r-- | src/node_platform.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_platform.cc b/src/node_platform.cc index 797d4d9cbb0..b930edb156b 100644 --- a/src/node_platform.cc +++ b/src/node_platform.cc @@ -241,14 +241,14 @@ void PerIsolatePlatformData::PostIdleTask(std::unique_ptr<v8::IdleTask> task) { } void PerIsolatePlatformData::PostTask(std::unique_ptr<Task> task) { - CHECK_NE(flush_tasks_, nullptr); + CHECK_NOT_NULL(flush_tasks_); foreground_tasks_.Push(std::move(task)); uv_async_send(flush_tasks_); } void PerIsolatePlatformData::PostDelayedTask( std::unique_ptr<Task> task, double delay_in_seconds) { - CHECK_NE(flush_tasks_, nullptr); + CHECK_NOT_NULL(flush_tasks_); std::unique_ptr<DelayedTask> delayed(new DelayedTask()); delayed->task = std::move(task); delayed->platform_data = shared_from_this(); |