Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-04-14 01:51:20 +0300
committerHans Goudey <h.goudey@me.com>2022-04-14 01:51:20 +0300
commitad3378215c0465898fde26270985ab2487d9b3ca (patch)
tree99b73c608acb50e692a29638e56a2bd57ceab1e5 /source/blender/python/gpu
parentabd02da4bd5ca5fac4aca2bc1868da0827aa74c2 (diff)
Cleanup: Clang tidy
Diffstat (limited to 'source/blender/python/gpu')
-rw-r--r--source/blender/python/gpu/gpu_py_shader_create_info.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/gpu/gpu_py_shader_create_info.cc b/source/blender/python/gpu/gpu_py_shader_create_info.cc
index 10824b09d70..ab2bdf33b26 100644
--- a/source/blender/python/gpu/gpu_py_shader_create_info.cc
+++ b/source/blender/python/gpu/gpu_py_shader_create_info.cc
@@ -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;