Cleanup: various non-functional changes for C++ (python, windowmanager)

- Remove redundant void, struct.
- Use function style casts.
This commit is contained in:
Campbell Barton
2023-07-21 10:59:54 +10:00
parent ae5682fa10
commit b29a4cdcfc
87 changed files with 491 additions and 500 deletions

View File

@@ -22,7 +22,7 @@
static PyObject *bpy_atexit(PyObject * /*self*/, PyObject * /*args*/, PyObject * /*kw*/)
{
/* close down enough of blender at least not to crash */
struct bContext *C = BPY_context_get();
bContext *C = BPY_context_get();
WM_exit_ex(C, false, false);
@@ -59,7 +59,7 @@ static void atexit_func_call(const char *func_name, PyObject *atexit_func_arg)
}
}
void BPY_atexit_register(void)
void BPY_atexit_register()
{
/* atexit module owns this new function reference */
BLI_assert(func_bpy_atregister == nullptr);
@@ -68,7 +68,7 @@ void BPY_atexit_register(void)
atexit_func_call("register", func_bpy_atregister);
}
void BPY_atexit_unregister(void)
void BPY_atexit_unregister()
{
BLI_assert(func_bpy_atregister != nullptr);