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:
@@ -118,7 +118,7 @@ PyDoc_STRVAR(ViewVertex_nature_doc,
|
||||
"\n"
|
||||
":type: :class:`Nature`");
|
||||
|
||||
static PyObject *ViewVertex_nature_get(BPy_ViewVertex *self, void *UNUSED(closure))
|
||||
static PyObject *ViewVertex_nature_get(BPy_ViewVertex *self, void * /*closure*/)
|
||||
{
|
||||
Nature::VertexNature nature = self->vv->getNature();
|
||||
if (PyErr_Occurred()) {
|
||||
@@ -127,7 +127,7 @@ static PyObject *ViewVertex_nature_get(BPy_ViewVertex *self, void *UNUSED(closur
|
||||
return BPy_Nature_from_Nature(nature); // return a copy
|
||||
}
|
||||
|
||||
static int ViewVertex_nature_set(BPy_ViewVertex *self, PyObject *value, void *UNUSED(closure))
|
||||
static int ViewVertex_nature_set(BPy_ViewVertex *self, PyObject *value, void * /*closure*/)
|
||||
{
|
||||
if (!BPy_Nature_Check(value)) {
|
||||
PyErr_SetString(PyExc_TypeError, "value must be a Nature");
|
||||
|
||||
Reference in New Issue
Block a user