diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-11-06 19:49:09 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-11-06 20:08:25 +0300 |
commit | 16732def37c5a66f3ea28dbe247b09cc6bca6677 (patch) | |
tree | 5d14f5c920a1411e336bd80b12becbb3f73de19a /source/blender/freestyle/intern/view_map/SphericalGrid.cpp | |
parent | 88926375a0e4e45f72c87b9e487c060ddd3c9216 (diff) |
Cleanup: Clang-Tidy modernize-use-nullptr
Replace `NULL` with `nullptr` in C++ code.
No functional changes.
Diffstat (limited to 'source/blender/freestyle/intern/view_map/SphericalGrid.cpp')
-rw-r--r-- | source/blender/freestyle/intern/view_map/SphericalGrid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/view_map/SphericalGrid.cpp b/source/blender/freestyle/intern/view_map/SphericalGrid.cpp index 1399ac396b0..db567d6b5ef 100644 --- a/source/blender/freestyle/intern/view_map/SphericalGrid.cpp +++ b/source/blender/freestyle/intern/view_map/SphericalGrid.cpp @@ -154,7 +154,7 @@ void SphericalGrid::assignCells(OccluderSource & /*source*/, Vec3r point = SphericalGrid::Transform::sphericalProjection((*f)->center3d()); unsigned i, j; getCellCoordinates(point, i, j); - if (_cells[i * _cellsY + j] == NULL) { + if (_cells[i * _cellsY + j] == nullptr) { // This is an uninitialized cell real x, y, width, height; @@ -178,7 +178,7 @@ void SphericalGrid::distributePolygons(OccluderSource &source) unsigned long nKeptFaces = 0; for (source.begin(); source.isValid(); source.next()) { - OccluderData *occluder = NULL; + OccluderData *occluder = nullptr; try { if (insertOccluder(source, occluder)) { |