diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-07-20 17:56:23 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-07-20 18:11:29 +0300 |
commit | f763929486bd8d2feae18d0457e0eda273a7ea49 (patch) | |
tree | 8b01ba0c9492858771273f1b0366676bb1abce06 /source/blender/blenlib/intern/delaunay_2d.cc | |
parent | 3ea4c6b9c9cb7bc6e9efa00bf86759b8a7fedc68 (diff) |
Cleanup: fix clang-tidy warning modernize-use-nullptr
No functional changes.
Diffstat (limited to 'source/blender/blenlib/intern/delaunay_2d.cc')
-rw-r--r-- | source/blender/blenlib/intern/delaunay_2d.cc | 22 |
1 files changed, 11 insertions, 11 deletions
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<typename T> 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; |