From 9a9f39e4661163391bb8e3eb782438e425abe684 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 20 Dec 2019 10:42:57 +1100 Subject: Cleanup: remove redundant 'char *' casts --- source/blender/python/gpu/gpu_py_offscreen.c | 10 +++------- source/blender/python/gpu/gpu_py_shader.c | 6 +----- 2 files changed, 4 insertions(+), 12 deletions(-) (limited to 'source/blender/python/gpu') diff --git a/source/blender/python/gpu/gpu_py_offscreen.c b/source/blender/python/gpu/gpu_py_offscreen.c index 6505e59624b..77dd4891e17 100644 --- a/source/blender/python/gpu/gpu_py_offscreen.c +++ b/source/blender/python/gpu/gpu_py_offscreen.c @@ -303,17 +303,13 @@ static void BPyGPUOffScreen__tp_dealloc(BPyGPUOffScreen *self) } static PyGetSetDef bpygpu_offscreen_getseters[] = { - {(char *)"color_texture", + {"color_texture", (getter)bpygpu_offscreen_color_texture_get, (setter)NULL, bpygpu_offscreen_color_texture_doc, NULL}, - {(char *)"width", - (getter)bpygpu_offscreen_width_get, - (setter)NULL, - bpygpu_offscreen_width_doc, - NULL}, - {(char *)"height", + {"width", (getter)bpygpu_offscreen_width_get, (setter)NULL, bpygpu_offscreen_width_doc, NULL}, + {"height", (getter)bpygpu_offscreen_height_get, (setter)NULL, bpygpu_offscreen_height_doc, diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c index 87091e311f3..bd52fbb0de5 100644 --- a/source/blender/python/gpu/gpu_py_shader.c +++ b/source/blender/python/gpu/gpu_py_shader.c @@ -578,11 +578,7 @@ static PyObject *bpygpu_shader_program_get(BPyGPUShader *self, void *UNUSED(clos } static PyGetSetDef bpygpu_shader_getseters[] = { - {(char *)"program", - (getter)bpygpu_shader_program_get, - (setter)NULL, - bpygpu_shader_program_doc, - NULL}, + {"program", (getter)bpygpu_shader_program_get, (setter)NULL, bpygpu_shader_program_doc, NULL}, {NULL, NULL, NULL, NULL, NULL} /* Sentinel */ }; -- cgit v1.2.3