diff options
author | Hans Goudey <h.goudey@me.com> | 2022-10-04 01:37:25 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-10-04 01:38:16 +0300 |
commit | 97746129d5870beedc40e3c035c7982ce8a6bebc (patch) | |
tree | b819b8e7875e6684aad7ea1f6bb7922d4fa1c8fc /source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_TVertex.cpp | |
parent | ed7f5713f8f9d605e3cd4cce42e40fb5c6bf4bf5 (diff) |
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*/`
Diffstat (limited to 'source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_TVertex.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_TVertex.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_TVertex.cpp b/source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_TVertex.cpp index 8dc76c1c448..ca4908cae7b 100644 --- a/source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_TVertex.cpp +++ b/source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_TVertex.cpp @@ -122,7 +122,7 @@ PyDoc_STRVAR(TVertex_front_svertex_doc, "\n" ":type: :class:`SVertex`"); -static PyObject *TVertex_front_svertex_get(BPy_TVertex *self, void *UNUSED(closure)) +static PyObject *TVertex_front_svertex_get(BPy_TVertex *self, void * /*closure*/) { SVertex *v = self->tv->frontSVertex(); if (v) { @@ -131,7 +131,7 @@ static PyObject *TVertex_front_svertex_get(BPy_TVertex *self, void *UNUSED(closu Py_RETURN_NONE; } -static int TVertex_front_svertex_set(BPy_TVertex *self, PyObject *value, void *UNUSED(closure)) +static int TVertex_front_svertex_set(BPy_TVertex *self, PyObject *value, void * /*closure*/) { if (!BPy_SVertex_Check(value)) { PyErr_SetString(PyExc_TypeError, "value must be an SVertex"); @@ -146,7 +146,7 @@ PyDoc_STRVAR(TVertex_back_svertex_doc, "\n" ":type: :class:`SVertex`"); -static PyObject *TVertex_back_svertex_get(BPy_TVertex *self, void *UNUSED(closure)) +static PyObject *TVertex_back_svertex_get(BPy_TVertex *self, void * /*closure*/) { SVertex *v = self->tv->backSVertex(); if (v) { @@ -155,7 +155,7 @@ static PyObject *TVertex_back_svertex_get(BPy_TVertex *self, void *UNUSED(closur Py_RETURN_NONE; } -static int TVertex_back_svertex_set(BPy_TVertex *self, PyObject *value, void *UNUSED(closure)) +static int TVertex_back_svertex_set(BPy_TVertex *self, PyObject *value, void * /*closure*/) { if (!BPy_SVertex_Check(value)) { PyErr_SetString(PyExc_TypeError, "value must be an SVertex"); @@ -170,13 +170,13 @@ PyDoc_STRVAR(TVertex_id_doc, "\n" ":type: :class:`Id`"); -static PyObject *TVertex_id_get(BPy_TVertex *self, void *UNUSED(closure)) +static PyObject *TVertex_id_get(BPy_TVertex *self, void * /*closure*/) { Id id(self->tv->getId()); return BPy_Id_from_Id(id); // return a copy } -static int TVertex_id_set(BPy_TVertex *self, PyObject *value, void *UNUSED(closure)) +static int TVertex_id_set(BPy_TVertex *self, PyObject *value, void * /*closure*/) { if (!BPy_Id_Check(value)) { PyErr_SetString(PyExc_TypeError, "value must be an Id"); |