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_SShape.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_SShape.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_SShape.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_SShape.cpp b/source/blender/freestyle/intern/python/BPy_SShape.cpp index 5e504772786..7fb647119e6 100644 --- a/source/blender/freestyle/intern/python/BPy_SShape.cpp +++ b/source/blender/freestyle/intern/python/BPy_SShape.cpp @@ -155,13 +155,13 @@ PyDoc_STRVAR(SShape_id_doc, "\n" ":type: :class:`Id`"); -static PyObject *SShape_id_get(BPy_SShape *self, void *UNUSED(closure)) +static PyObject *SShape_id_get(BPy_SShape *self, void * /*closure*/) { Id id(self->ss->getId()); return BPy_Id_from_Id(id); // return a copy } -static int SShape_id_set(BPy_SShape *self, PyObject *value, void *UNUSED(closure)) +static int SShape_id_set(BPy_SShape *self, PyObject *value, void * /*closure*/) { if (!BPy_Id_Check(value)) { PyErr_SetString(PyExc_TypeError, "value must be an Id"); @@ -176,12 +176,12 @@ PyDoc_STRVAR(SShape_name_doc, "\n" ":type: str"); -static PyObject *SShape_name_get(BPy_SShape *self, void *UNUSED(closure)) +static PyObject *SShape_name_get(BPy_SShape *self, void * /*closure*/) { return PyUnicode_FromString(self->ss->getName().c_str()); } -static int SShape_name_set(BPy_SShape *self, PyObject *value, void *UNUSED(closure)) +static int SShape_name_set(BPy_SShape *self, PyObject *value, void * /*closure*/) { if (!PyUnicode_Check(value)) { PyErr_SetString(PyExc_TypeError, "value must be a string"); @@ -197,13 +197,13 @@ PyDoc_STRVAR(SShape_bbox_doc, "\n" ":type: :class:`BBox`"); -static PyObject *SShape_bbox_get(BPy_SShape *self, void *UNUSED(closure)) +static PyObject *SShape_bbox_get(BPy_SShape *self, void * /*closure*/) { BBox<Vec3r> bb(self->ss->bbox()); return BPy_BBox_from_BBox(bb); // return a copy } -static int SShape_bbox_set(BPy_SShape *self, PyObject *value, void *UNUSED(closure)) +static int SShape_bbox_set(BPy_SShape *self, PyObject *value, void * /*closure*/) { if (!BPy_BBox_Check(value)) { PyErr_SetString(PyExc_TypeError, "value must be a BBox"); @@ -218,7 +218,7 @@ PyDoc_STRVAR(SShape_vertices_doc, "\n" ":type: List of :class:`SVertex` objects"); -static PyObject *SShape_vertices_get(BPy_SShape *self, void *UNUSED(closure)) +static PyObject *SShape_vertices_get(BPy_SShape *self, void * /*closure*/) { vector<SVertex *> vertices = self->ss->getVertexList(); @@ -238,7 +238,7 @@ PyDoc_STRVAR(SShape_edges_doc, "\n" ":type: List of :class:`FEdge` objects"); -static PyObject *SShape_edges_get(BPy_SShape *self, void *UNUSED(closure)) +static PyObject *SShape_edges_get(BPy_SShape *self, void * /*closure*/) { vector<FEdge *> edges = self->ss->getEdgeList(); |