Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2020-07-03 17:32:12 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2020-07-03 17:32:51 +0300
commitf891d4e2adae2dcf35497ba95a9cfb74affead0c (patch)
treefddb5cad92ddbe5b22323ee0b011f1f95682c716 /source/blender/freestyle/intern/stroke/Stroke.cpp
parent53d41e1a6fc4c521e412fba57913f93fadeb3735 (diff)
Clang-Tidy: Fix readability-delete-null-pointer warnings
Also enable it in the configuration.
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Stroke.cpp')
-rw-r--r--source/blender/freestyle/intern/stroke/Stroke.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/stroke/Stroke.cpp b/source/blender/freestyle/intern/stroke/Stroke.cpp
index 2f29eac83b1..93a870c26ad 100644
--- a/source/blender/freestyle/intern/stroke/Stroke.cpp
+++ b/source/blender/freestyle/intern/stroke/Stroke.cpp
@@ -484,9 +484,7 @@ Stroke &Stroke::operator=(const Stroke &iBrother)
_id = iBrother._id;
_ViewEdges = iBrother._ViewEdges;
_sampling = iBrother._sampling;
- if (_rep) {
- delete _rep;
- }
+ delete _rep;
if (iBrother._rep) {
_rep = new StrokeRep(*(iBrother._rep));
}