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/ViewMapIO.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/ViewMapIO.cpp')
-rw-r--r-- | source/blender/freestyle/intern/view_map/ViewMapIO.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/view_map/ViewMapIO.cpp b/source/blender/freestyle/intern/view_map/ViewMapIO.cpp index 3cbf42ed388..d71bc5758c9 100644 --- a/source/blender/freestyle/intern/view_map/ViewMapIO.cpp +++ b/source/blender/freestyle/intern/view_map/ViewMapIO.cpp @@ -228,8 +228,8 @@ static int load(istream &in, FEdge *fe) bool b; - FEdgeSmooth *fesmooth = NULL; - FEdgeSharp *fesharp = NULL; + FEdgeSmooth *fesmooth = nullptr; + FEdgeSharp *fesharp = nullptr; if (fe->isSmooth()) { fesmooth = dynamic_cast<FEdgeSmooth *>(fe); } @@ -1239,25 +1239,25 @@ int save(ostream &out, ViewMap *vm, ProgressBar *pb) for (vector<ViewShape *>::const_iterator j0 = vm->ViewShapes().begin(); j0 != vm->ViewShapes().end(); j0++) { - (*j0)->userdata = NULL; - (*j0)->sshape()->userdata = NULL; + (*j0)->userdata = nullptr; + (*j0)->sshape()->userdata = nullptr; } for (vector<FEdge *>::const_iterator j1 = vm->FEdges().begin(); j1 != vm->FEdges().end(); j1++) { - (*j1)->userdata = NULL; + (*j1)->userdata = nullptr; } for (vector<SVertex *>::const_iterator j2 = vm->SVertices().begin(); j2 != vm->SVertices().end(); j2++) { - (*j2)->userdata = NULL; + (*j2)->userdata = nullptr; } for (vector<ViewEdge *>::const_iterator j3 = vm->ViewEdges().begin(); j3 != vm->ViewEdges().end(); j3++) { - (*j3)->userdata = NULL; + (*j3)->userdata = nullptr; } for (vector<ViewVertex *>::const_iterator j4 = vm->ViewVertices().begin(); j4 != vm->ViewVertices().end(); j4++) { - (*j4)->userdata = NULL; + (*j4)->userdata = nullptr; } SET_PROGRESS(6); |