From 4a92d82626980d6d1690113b9d27aae282fd48eb Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Thu, 7 Mar 2013 23:17:23 +0000 Subject: A big code clean-up patch from Bastien Montagne, many thanks! --- .../python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp') diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp index 10c2977f411..7b1e5ba9c61 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp @@ -96,7 +96,7 @@ static char UnaryFunction1DVoid___doc__[] = " :arg integration_type: An integration method.\n" " :type integration_type: :class:`IntegrationType`\n"; -static int UnaryFunction1DVoid___init__(BPy_UnaryFunction1DVoid* self, PyObject *args, PyObject *kwds) +static int UnaryFunction1DVoid___init__(BPy_UnaryFunction1DVoid *self, PyObject *args, PyObject *kwds) { static const char *kwlist[] = {"integration", NULL}; PyObject *obj = 0; @@ -115,19 +115,19 @@ static int UnaryFunction1DVoid___init__(BPy_UnaryFunction1DVoid* self, PyObject return 0; } -static void UnaryFunction1DVoid___dealloc__(BPy_UnaryFunction1DVoid* self) +static void UnaryFunction1DVoid___dealloc__(BPy_UnaryFunction1DVoid *self) { if (self->uf1D_void) delete self->uf1D_void; - UnaryFunction1D_Type.tp_dealloc((PyObject*)self); + UnaryFunction1D_Type.tp_dealloc((PyObject *)self); } -static PyObject * UnaryFunction1DVoid___repr__(BPy_UnaryFunction1DVoid* self) +static PyObject *UnaryFunction1DVoid___repr__(BPy_UnaryFunction1DVoid *self) { return PyUnicode_FromFormat("type: %s - address: %p", Py_TYPE(self)->tp_name, self->uf1D_void); } -static PyObject * UnaryFunction1DVoid___call__(BPy_UnaryFunction1DVoid *self, PyObject *args, PyObject *kwds) +static PyObject *UnaryFunction1DVoid___call__(BPy_UnaryFunction1DVoid *self, PyObject *args, PyObject *kwds) { static const char *kwlist[] = {"inter", NULL}; PyObject *obj = 0; @@ -172,7 +172,8 @@ static int integration_type_set(BPy_UnaryFunction1DVoid *self, PyObject *value, } static PyGetSetDef BPy_UnaryFunction1DVoid_getseters[] = { - {(char *)"integration_type", (getter)integration_type_get, (setter)integration_type_set, (char *)integration_type_doc, NULL}, + {(char *)"integration_type", (getter)integration_type_get, (setter)integration_type_set, + (char *)integration_type_doc, NULL}, {NULL, NULL, NULL, NULL, NULL} /* Sentinel */ }; -- cgit v1.2.3