Cleanup: use nullptr instead of zero

This commit is contained in:
Campbell Barton
2023-08-03 19:14:53 +10:00
parent c6f3f19648
commit de391cf811
86 changed files with 365 additions and 267 deletions

View File

@@ -333,7 +333,7 @@ static PyObject *pygpu_framebuffer__tp_new(PyTypeObject * /*self*/, PyObject *ar
"O" /* `color_slots` */
":GPUFrameBuffer.__new__",
_keywords,
0,
nullptr,
};
if (!_PyArg_ParseTupleAndKeywordsFast(
args, kwds, &_parser, &depth_attachment, &color_attachements))
@@ -429,7 +429,7 @@ static PyObject *pygpu_framebuffer_clear(BPyGPUFrameBuffer *self, PyObject *args
"O" /* `stencil` */
":clear",
_keywords,
0,
nullptr,
};
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwds, &_parser, &py_col, &py_depth, &py_stencil)) {
return nullptr;
@@ -553,7 +553,7 @@ static PyObject *pygpu_framebuffer_read_color(BPyGPUFrameBuffer *self,
"O!" /* `data` */
":read_color",
_keywords,
0,
nullptr,
};
if (!_PyArg_ParseTupleAndKeywordsFast(args,
kwds,
@@ -651,7 +651,7 @@ static PyObject *pygpu_framebuffer_read_depth(BPyGPUFrameBuffer *self,
"O!" /* `data` */
":read_depth",
_keywords,
0,
nullptr,
};
if (!_PyArg_ParseTupleAndKeywordsFast(
args, kwds, &_parser, &x, &y, &w, &h, &BPyGPU_BufferType, &py_buffer))