Cleanup: replace UNUSED macro with commented args in C++ code
This is the conventional way of dealing with unused arguments in C++, since it works on all compilers. Regex find and replace: `UNUSED\((\w+)\)` -> `/*$1*/`
This commit is contained in:
@@ -141,12 +141,12 @@ PyDoc_STRVAR(ViewMap_scene_bbox_doc,
|
||||
"\n"
|
||||
":type: :class:`BBox`");
|
||||
|
||||
static PyObject *ViewMap_scene_bbox_get(BPy_ViewMap *self, void *UNUSED(closure))
|
||||
static PyObject *ViewMap_scene_bbox_get(BPy_ViewMap *self, void * /*closure*/)
|
||||
{
|
||||
return BPy_BBox_from_BBox(self->vm->getScene3dBBox());
|
||||
}
|
||||
|
||||
static int ViewMap_scene_bbox_set(BPy_ViewMap *self, PyObject *value, void *UNUSED(closure))
|
||||
static int ViewMap_scene_bbox_set(BPy_ViewMap *self, PyObject *value, void * /*closure*/)
|
||||
{
|
||||
if (!BPy_BBox_Check(value)) {
|
||||
PyErr_SetString(PyExc_TypeError, "value must be a BBox");
|
||||
|
||||
Reference in New Issue
Block a user