diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-12-20 02:42:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-20 02:42:57 +0300 |
commit | 9a9f39e4661163391bb8e3eb782438e425abe684 (patch) | |
tree | e67dc76e18b408a2708dc5b5f7a7b3e89bd552cf /source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp | |
parent | 6ccef2aa7e010c1e5b6986a696dc27ef8826c6c2 (diff) |
Cleanup: remove redundant 'char *' casts
Diffstat (limited to 'source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp | 50 |
1 files changed, 19 insertions, 31 deletions
diff --git a/source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp b/source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp index 208d6cbfd6d..0570d9790ab 100644 --- a/source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp +++ b/source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp @@ -331,60 +331,48 @@ static int ViewEdge_chaining_time_stamp_set(BPy_ViewEdge *self, } static PyGetSetDef BPy_ViewEdge_getseters[] = { - {(char *)"first_viewvertex", + {"first_viewvertex", (getter)ViewEdge_first_viewvertex_get, (setter)ViewEdge_first_viewvertex_set, - (char *)ViewEdge_first_viewvertex_doc, + ViewEdge_first_viewvertex_doc, NULL}, - {(char *)"last_viewvertex", + {"last_viewvertex", (getter)ViewEdge_last_viewvertex_get, (setter)ViewEdge_last_viewvertex_set, - (char *)ViewEdge_last_viewvertex_doc, + ViewEdge_last_viewvertex_doc, NULL}, - {(char *)"first_fedge", + {"first_fedge", (getter)ViewEdge_first_fedge_get, (setter)ViewEdge_first_fedge_set, - (char *)ViewEdge_first_fedge_doc, + ViewEdge_first_fedge_doc, NULL}, - {(char *)"last_fedge", + {"last_fedge", (getter)ViewEdge_last_fedge_get, (setter)ViewEdge_last_fedge_set, - (char *)ViewEdge_last_fedge_doc, + ViewEdge_last_fedge_doc, NULL}, - {(char *)"viewshape", + {"viewshape", (getter)ViewEdge_viewshape_get, (setter)ViewEdge_viewshape_set, - (char *)ViewEdge_viewshape_doc, + ViewEdge_viewshape_doc, NULL}, - {(char *)"occludee", + {"occludee", (getter)ViewEdge_occludee_get, (setter)ViewEdge_occludee_set, - (char *)ViewEdge_occludee_doc, + ViewEdge_occludee_doc, NULL}, - {(char *)"is_closed", - (getter)ViewEdge_is_closed_get, - (setter)NULL, - (char *)ViewEdge_is_closed_doc, - NULL}, - {(char *)"id", - (getter)ViewEdge_id_get, - (setter)ViewEdge_id_set, - (char *)ViewEdge_id_doc, - NULL}, - {(char *)"nature", + {"is_closed", (getter)ViewEdge_is_closed_get, (setter)NULL, ViewEdge_is_closed_doc, NULL}, + {"id", (getter)ViewEdge_id_get, (setter)ViewEdge_id_set, ViewEdge_id_doc, NULL}, + {"nature", (getter)ViewEdge_nature_get, (setter)ViewEdge_nature_set, - (char *)ViewEdge_nature_doc, - NULL}, - {(char *)"qi", - (getter)ViewEdge_qi_get, - (setter)ViewEdge_qi_set, - (char *)ViewEdge_qi_doc, + ViewEdge_nature_doc, NULL}, - {(char *)"chaining_time_stamp", + {"qi", (getter)ViewEdge_qi_get, (setter)ViewEdge_qi_set, ViewEdge_qi_doc, NULL}, + {"chaining_time_stamp", (getter)ViewEdge_chaining_time_stamp_get, (setter)ViewEdge_chaining_time_stamp_set, - (char *)ViewEdge_chaining_time_stamp_doc, + ViewEdge_chaining_time_stamp_doc, NULL}, {NULL, NULL, NULL, NULL, NULL} /* Sentinel */ }; |