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_Interface1D.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_Interface1D.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_Interface1D.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Interface1D.cpp b/source/blender/freestyle/intern/python/BPy_Interface1D.cpp index 1a353c2174f..d636fb4e6b8 100644 --- a/source/blender/freestyle/intern/python/BPy_Interface1D.cpp +++ b/source/blender/freestyle/intern/python/BPy_Interface1D.cpp @@ -234,7 +234,7 @@ PyDoc_STRVAR(Interface1D_name_doc, "\n" ":type: str"); -static PyObject *Interface1D_name_get(BPy_Interface1D *self, void *UNUSED(closure)) +static PyObject *Interface1D_name_get(BPy_Interface1D *self, void * /*closure*/) { return PyUnicode_FromString(Py_TYPE(self)->tp_name); } @@ -244,7 +244,7 @@ PyDoc_STRVAR(Interface1D_id_doc, "\n" ":type: :class:`Id`"); -static PyObject *Interface1D_id_get(BPy_Interface1D *self, void *UNUSED(closure)) +static PyObject *Interface1D_id_get(BPy_Interface1D *self, void * /*closure*/) { Id id(self->if1D->getId()); if (PyErr_Occurred()) { @@ -258,7 +258,7 @@ PyDoc_STRVAR(Interface1D_nature_doc, "\n" ":type: :class:`Nature`"); -static PyObject *Interface1D_nature_get(BPy_Interface1D *self, void *UNUSED(closure)) +static PyObject *Interface1D_nature_get(BPy_Interface1D *self, void * /*closure*/) { Nature::VertexNature nature = self->if1D->getNature(); if (PyErr_Occurred()) { @@ -272,7 +272,7 @@ PyDoc_STRVAR(Interface1D_length_2d_doc, "\n" ":type: float"); -static PyObject *Interface1D_length_2d_get(BPy_Interface1D *self, void *UNUSED(closure)) +static PyObject *Interface1D_length_2d_get(BPy_Interface1D *self, void * /*closure*/) { real length = self->if1D->getLength2D(); if (PyErr_Occurred()) { @@ -286,14 +286,12 @@ PyDoc_STRVAR(Interface1D_time_stamp_doc, "\n" ":type: int"); -static PyObject *Interface1D_time_stamp_get(BPy_Interface1D *self, void *UNUSED(closure)) +static PyObject *Interface1D_time_stamp_get(BPy_Interface1D *self, void * /*closure*/) { return PyLong_FromLong(self->if1D->getTimeStamp()); } -static int Interface1D_time_stamp_set(BPy_Interface1D *self, - PyObject *value, - void *UNUSED(closure)) +static int Interface1D_time_stamp_set(BPy_Interface1D *self, PyObject *value, void * /*closure*/) { int timestamp; |