From f763929486bd8d2feae18d0457e0eda273a7ea49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 20 Jul 2021 16:56:23 +0200 Subject: Cleanup: fix clang-tidy warning modernize-use-nullptr No functional changes. --- source/blender/blenlib/intern/delaunay_2d.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'source/blender') diff --git a/source/blender/blenlib/intern/delaunay_2d.cc b/source/blender/blenlib/intern/delaunay_2d.cc index 08f18d5cbf3..47e4617d094 100644 --- a/source/blender/blenlib/intern/delaunay_2d.cc +++ b/source/blender/blenlib/intern/delaunay_2d.cc @@ -441,11 +441,11 @@ template std::ostream &operator<<(std::ostream &os, const CDT_state< if (se) { os << " edges out:\n"; do { - if (se->next == NULL) { + if (se->next == nullptr) { os << " [NULL] next/rot symedge, se=" << trunc_ptr(se) << "\n"; break; } - if (se->next->next == NULL) { + if (se->next->next == nullptr) { os << " [NULL] next-next/rot symedge, se=" << trunc_ptr(se) << "\n"; break; } @@ -2884,15 +2884,15 @@ extern "C" ::CDT_result *BLI_delaunay_2d_cdt_calc(const ::CDT_input *input, MEM_malloc_arrayN(nf, sizeof(int), __func__)); } else { - output->verts_orig = NULL; - output->verts_orig_start_table = NULL; - output->verts_orig_len_table = NULL; - output->edges_orig = NULL; - output->edges_orig_start_table = NULL; - output->edges_orig_len_table = NULL; - output->faces_orig = NULL; - output->faces_orig_start_table = NULL; - output->faces_orig_len_table = NULL; + output->verts_orig = nullptr; + output->verts_orig_start_table = nullptr; + output->verts_orig_len_table = nullptr; + output->edges_orig = nullptr; + output->edges_orig_start_table = nullptr; + output->edges_orig_len_table = nullptr; + output->faces_orig = nullptr; + output->faces_orig_start_table = nullptr; + output->faces_orig_len_table = nullptr; } int v_orig_index = 0; -- cgit v1.2.3