diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-02-24 06:32:56 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-02-24 06:32:56 +0400 |
commit | d38a335d47f1632000db5172877499ff0184d114 (patch) | |
tree | 296dceec7d9a82057f0b7cd7ce33de6771dc8906 /source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp | |
parent | 3bd0b8971615d6ddc309aa33a40f7ebf0c25b0c6 (diff) |
Code clean-up and fix for typos in docstrings.
Diffstat (limited to 'source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp index b71c481a1c5..84467466526 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp @@ -87,7 +87,8 @@ static PyObject * orientedViewEdgeIterator_iternext(BPy_orientedViewEdgeIterator } self->ove_it->decrement(); dve = self->ove_it->operator->(); - } else { + } + else { if (self->ove_it->isEnd()) { PyErr_SetNone(PyExc_StopIteration); return NULL; @@ -98,10 +99,6 @@ static PyObject * orientedViewEdgeIterator_iternext(BPy_orientedViewEdgeIterator return BPy_directedViewEdge_from_directedViewEdge(*dve); } -static PyMethodDef BPy_orientedViewEdgeIterator_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------orientedViewEdgeIterator get/setters ----------------------------*/ PyDoc_STRVAR(orientedViewEdgeIterator_object_doc, @@ -114,7 +111,6 @@ PyDoc_STRVAR(orientedViewEdgeIterator_object_doc, static PyObject *orientedViewEdgeIterator_object_get(BPy_orientedViewEdgeIterator *self, void *UNUSED(closure)) { return BPy_directedViewEdge_from_directedViewEdge(self->ove_it->operator*()); - } static PyGetSetDef BPy_orientedViewEdgeIterator_getseters[] = { @@ -145,14 +141,14 @@ PyTypeObject orientedViewEdgeIterator_Type = { 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ - orientedViewEdgeIterator_doc, /* tp_doc */ + orientedViewEdgeIterator_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ PyObject_SelfIter, /* tp_iter */ (iternextfunc)orientedViewEdgeIterator_iternext, /* tp_iternext */ - BPy_orientedViewEdgeIterator_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_orientedViewEdgeIterator_getseters, /* tp_getset */ &Iterator_Type, /* tp_base */ |