Cleanup: remove redundant 'char *' casts
This commit is contained in:
@@ -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,
|
||||
|
@@ -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 */
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user