diff options
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 |