Cleanup: Clang-Tidy modernize-use-nullptr
Replace `NULL` with `nullptr` in C++ code. No functional changes.
This commit is contained in:
@@ -195,7 +195,7 @@ int Director_BPy_ChainingIterator_init(ChainingIterator *c_it)
|
||||
PyErr_SetString(PyExc_RuntimeError, "Reference to Python object (py_c_it) not initialized");
|
||||
return -1;
|
||||
}
|
||||
PyObject *result = PyObject_CallMethod((PyObject *)c_it->py_c_it, "init", NULL);
|
||||
PyObject *result = PyObject_CallMethod((PyObject *)c_it->py_c_it, "init", nullptr);
|
||||
if (!result) {
|
||||
return -1;
|
||||
}
|
||||
@@ -222,7 +222,7 @@ int Director_BPy_ChainingIterator_traverse(ChainingIterator *c_it, AdjacencyIter
|
||||
c_it->result = ((BPy_ViewEdge *)result)->ve;
|
||||
}
|
||||
else if (result == Py_None) {
|
||||
c_it->result = NULL;
|
||||
c_it->result = nullptr;
|
||||
}
|
||||
else {
|
||||
PyErr_SetString(PyExc_RuntimeError, "traverse method returned a wrong value");
|
||||
|
||||
Reference in New Issue
Block a user