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/BPy_ViewShape.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/BPy_ViewShape.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_ViewShape.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_ViewShape.cpp b/source/blender/freestyle/intern/python/BPy_ViewShape.cpp index 319058ea719..77c3c708103 100644 --- a/source/blender/freestyle/intern/python/BPy_ViewShape.cpp +++ b/source/blender/freestyle/intern/python/BPy_ViewShape.cpp @@ -163,7 +163,7 @@ PyDoc_STRVAR(ViewShape_sshape_doc, "\n" ":type: :class:`SShape`"); -static PyObject *ViewShape_sshape_get(BPy_ViewShape *self, void *UNUSED(closure)) +static PyObject *ViewShape_sshape_get(BPy_ViewShape *self, void * /*closure*/) { SShape *ss = self->vs->sshape(); if (!ss) { @@ -172,7 +172,7 @@ static PyObject *ViewShape_sshape_get(BPy_ViewShape *self, void *UNUSED(closure) return BPy_SShape_from_SShape(*ss); } -static int ViewShape_sshape_set(BPy_ViewShape *self, PyObject *value, void *UNUSED(closure)) +static int ViewShape_sshape_set(BPy_ViewShape *self, PyObject *value, void * /*closure*/) { if (!BPy_SShape_Check(value)) { PyErr_SetString(PyExc_TypeError, "value must be an SShape"); @@ -195,7 +195,7 @@ PyDoc_STRVAR(ViewShape_vertices_doc, "\n" ":type: List of :class:`ViewVertex` objects"); -static PyObject *ViewShape_vertices_get(BPy_ViewShape *self, void *UNUSED(closure)) +static PyObject *ViewShape_vertices_get(BPy_ViewShape *self, void * /*closure*/) { vector<ViewVertex *> vertices = self->vs->vertices(); vector<ViewVertex *>::iterator it; @@ -208,7 +208,7 @@ static PyObject *ViewShape_vertices_get(BPy_ViewShape *self, void *UNUSED(closur return py_vertices; } -static int ViewShape_vertices_set(BPy_ViewShape *self, PyObject *value, void *UNUSED(closure)) +static int ViewShape_vertices_set(BPy_ViewShape *self, PyObject *value, void * /*closure*/) { PyObject *item; vector<ViewVertex *> v; @@ -238,7 +238,7 @@ PyDoc_STRVAR(ViewShape_edges_doc, "\n" ":type: List of :class:`ViewEdge` objects"); -static PyObject *ViewShape_edges_get(BPy_ViewShape *self, void *UNUSED(closure)) +static PyObject *ViewShape_edges_get(BPy_ViewShape *self, void * /*closure*/) { vector<ViewEdge *> edges = self->vs->edges(); vector<ViewEdge *>::iterator it; @@ -251,7 +251,7 @@ static PyObject *ViewShape_edges_get(BPy_ViewShape *self, void *UNUSED(closure)) return py_edges; } -static int ViewShape_edges_set(BPy_ViewShape *self, PyObject *value, void *UNUSED(closure)) +static int ViewShape_edges_set(BPy_ViewShape *self, PyObject *value, void * /*closure*/) { PyObject *item; vector<ViewEdge *> v; @@ -281,7 +281,7 @@ PyDoc_STRVAR(ViewShape_name_doc, "\n" ":type: str"); -static PyObject *ViewShape_name_get(BPy_ViewShape *self, void *UNUSED(closure)) +static PyObject *ViewShape_name_get(BPy_ViewShape *self, void * /*closure*/) { return PyUnicode_FromString(self->vs->getName().c_str()); } @@ -291,7 +291,7 @@ PyDoc_STRVAR(ViewShape_library_path_doc, "\n" ":type: str, or None if the ViewShape is not part of a library"); -static PyObject *ViewShape_library_path_get(BPy_ViewShape *self, void *UNUSED(closure)) +static PyObject *ViewShape_library_path_get(BPy_ViewShape *self, void * /*closure*/) { return PyUnicode_FromString(self->vs->getLibraryPath().c_str()); } @@ -301,7 +301,7 @@ PyDoc_STRVAR(ViewShape_id_doc, "\n" ":type: :class:`Id`"); -static PyObject *ViewShape_id_get(BPy_ViewShape *self, void *UNUSED(closure)) +static PyObject *ViewShape_id_get(BPy_ViewShape *self, void * /*closure*/) { Id id(self->vs->getId()); return BPy_Id_from_Id(id); // return a copy |