Cleanup: Clang tidy

This commit is contained in:
Hans Goudey 2022-04-13 17:51:20 -05:00
parent abd02da4bd
commit ad3378215c
3 changed files with 5 additions and 5 deletions

View File

@ -473,7 +473,7 @@ static void CURVES_OT_snap_curves_to_surface(wmOperatorType *ot)
"Deform",
"Re-attach curves to a deformed surface using the existing attachment information. This "
"only works when the topology of the surface mesh has not changed"},
{0, NULL, 0, NULL, NULL},
{0, nullptr, 0, nullptr, nullptr},
};
RNA_def_enum(ot->srna,

View File

@ -1167,7 +1167,7 @@ void SCENE_OT_view_layer_add_lightgroup(wmOperatorType *ot)
ot->prop = RNA_def_string(ot->srna,
"name",
nullptr,
sizeof(((ViewLayerLightgroup *)NULL)->name),
sizeof(((ViewLayerLightgroup *)nullptr)->name),
"Name",
"Name of newly created lightgroup");
}

View File

@ -321,7 +321,7 @@ static PyObject *pygpu_interface_info__tp_new(PyTypeObject *UNUSED(type),
StageInterfaceInfo *interface = new StageInterfaceInfo(name, "");
GPUStageInterfaceInfo *interface_info = reinterpret_cast<GPUStageInterfaceInfo *>(interface);
auto self = BPyGPUStageInterfaceInfo_CreatePyObject(interface_info);
auto *self = BPyGPUStageInterfaceInfo_CreatePyObject(interface_info);
#ifdef USE_GPU_PY_REFERENCES
PyObject *py_name = PyTuple_GET_ITEM(args, 0);
@ -483,7 +483,7 @@ static PyObject *pygpu_shader_info_fragment_out(BPyGPUShaderCreateInfo *self,
struct PyC_StringEnum blend_type = {pygpu_dualblend_items, (int)DualBlend::NONE};
static const char *_keywords[] = {"slot", "type", "name", "blend", nullptr};
static _PyArg_Parser _parser = {"iO&s|$O&:fragment_out", _keywords, 0};
static _PyArg_Parser _parser = {"iO&s|$O&:fragment_out", _keywords, nullptr};
if (!_PyArg_ParseTupleAndKeywordsFast(args,
kwds,
&_parser,
@ -733,7 +733,7 @@ static PyObject *pygpu_shader_info_push_constant(BPyGPUShaderCreateInfo *self,
int array_size = 0;
static const char *_keywords[] = {"type", "name", "size", nullptr};
static _PyArg_Parser _parser = {"O&s|I:push_constant", _keywords, 0};
static _PyArg_Parser _parser = {"O&s|I:push_constant", _keywords, nullptr};
if (!_PyArg_ParseTupleAndKeywordsFast(
args, kwds, &_parser, PyC_ParseStringEnum, &pygpu_type, &name, &array_size)) {
return nullptr;