Cleanup: remove redundant (void) for functions with no args in C++

This commit is contained in:
Campbell Barton
2023-07-02 19:37:22 +10:00
parent feb83e66c6
commit 69aee8ba6b
115 changed files with 354 additions and 354 deletions

View File

@@ -156,7 +156,7 @@ static PyObject *py_bvhtree_raycast_to_py(const BVHTreeRayHit *hit)
return py_retval;
}
static PyObject *py_bvhtree_raycast_to_py_none(void)
static PyObject *py_bvhtree_raycast_to_py_none()
{
PyObject *py_retval = PyTuple_New(4);
@@ -210,7 +210,7 @@ static PyObject *py_bvhtree_nearest_to_py(const BVHTreeNearest *nearest)
return py_retval;
}
static PyObject *py_bvhtree_nearest_to_py_none(void)
static PyObject *py_bvhtree_nearest_to_py_none()
{
PyObject *py_retval = PyTuple_New(4);
@@ -1324,7 +1324,7 @@ static PyModuleDef bvhtree_moduledef = {
/*m_free*/ nullptr,
};
PyMODINIT_FUNC PyInit_mathutils_bvhtree(void)
PyMODINIT_FUNC PyInit_mathutils_bvhtree()
{
PyObject *m = PyModule_Create(&bvhtree_moduledef);