Clang-Tidy: Fix readability-delete-null-pointer warnings

Also enable it in the configuration.
This commit is contained in:
2020-07-03 16:32:12 +02:00
parent 53d41e1a6f
commit f891d4e2ad
32 changed files with 33 additions and 97 deletions

View File

@@ -120,9 +120,7 @@ static int BinaryPredicate1D___init__(BPy_BinaryPredicate1D *self, PyObject *arg
static void BinaryPredicate1D___dealloc__(BPy_BinaryPredicate1D *self)
{
if (self->bp1D) {
delete self->bp1D;
}
delete self->bp1D;
Py_TYPE(self)->tp_free((PyObject *)self);
}