Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-02-24 06:32:56 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-02-24 06:32:56 +0400
commitd38a335d47f1632000db5172877499ff0184d114 (patch)
tree296dceec7d9a82057f0b7cd7ce33de6771dc8906 /source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
parent3bd0b8971615d6ddc309aa33a40f7ebf0c25b0c6 (diff)
Code clean-up and fix for typos in docstrings.
Diffstat (limited to 'source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp')
-rw-r--r--source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
index 13dd6e98343..1e5598ddd1c 100644
--- a/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
+++ b/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
@@ -109,7 +109,8 @@ static PyObject * Interface0DIterator_iternext(BPy_Interface0DIterator *self)
}
self->if0D_it->decrement();
if0D = self->if0D_it->operator->();
- } else {
+ }
+ else {
if (self->if0D_it->isEnd()) {
PyErr_SetNone(PyExc_StopIteration);
return NULL;
@@ -120,10 +121,6 @@ static PyObject * Interface0DIterator_iternext(BPy_Interface0DIterator *self)
return Any_BPy_Interface0D_from_Interface0D(*if0D);
}
-static PyMethodDef BPy_Interface0DIterator_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*----------------------Interface0DIterator get/setters ----------------------------*/
PyDoc_STRVAR(Interface0DIterator_object_doc,
@@ -193,7 +190,7 @@ PyTypeObject Interface0DIterator_Type = {
0, /* tp_weaklistoffset */
PyObject_SelfIter, /* tp_iter */
(iternextfunc)Interface0DIterator_iternext, /* tp_iternext */
- BPy_Interface0DIterator_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
BPy_Interface0DIterator_getseters, /* tp_getset */
&Iterator_Type, /* tp_base */