Clang-Tidy: Fix readability-delete-null-pointer warnings
Also enable it in the configuration.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user