diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-02-02 16:27:12 +0800 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-02-07 07:39:42 +0100 |
commit | abba1020f41cf684b850b95a1c96e2007959fe80 (patch) | |
tree | 41f4352e39016d228984b33e972c1f4aec285811 /src/util-inl.h | |
parent | b8d9d4ac68be5b95747a77b7f8bbdd62db379931 (diff) | |
download | node-new-abba1020f41cf684b850b95a1c96e2007959fe80.tar.gz |
src: refactor to nullptr in cpp code
Signed-off-by: gengjiawen <technicalcute@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/25888
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src/util-inl.h')
-rw-r--r-- | src/util-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util-inl.h b/src/util-inl.h index 182c50268d..9f57b635db 100644 --- a/src/util-inl.h +++ b/src/util-inl.h @@ -143,7 +143,7 @@ typename ListHead<T, M>::Iterator ListHead<T, M>::end() const { template <typename Inner, typename Outer> constexpr uintptr_t OffsetOf(Inner Outer::*field) { - return reinterpret_cast<uintptr_t>(&(static_cast<Outer*>(0)->*field)); + return reinterpret_cast<uintptr_t>(&(static_cast<Outer*>(nullptr)->*field)); } template <typename Inner, typename Outer> |