Cleanup: remove redundant 'char *' casts

This commit is contained in:
2019-12-20 10:42:57 +11:00
parent 6ccef2aa7e
commit 9a9f39e466
73 changed files with 692 additions and 1002 deletions

View File

@@ -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,

View File

@@ -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 */
};