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-03-08 03:17:23 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-03-08 03:17:23 +0400
commit4a92d82626980d6d1690113b9d27aae282fd48eb (patch)
treed690f59c72441272ed462fe59d416a9a255d087e /source/blender/freestyle/intern/python/BPy_Iterator.cpp
parentb4b22699850a859d601bb4851d0af18f568b3061 (diff)
A big code clean-up patch from Bastien Montagne, many thanks!
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Iterator.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_Iterator.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Iterator.cpp b/source/blender/freestyle/intern/python/BPy_Iterator.cpp
index 785a24a47bb..302f3455f52 100644
--- a/source/blender/freestyle/intern/python/BPy_Iterator.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Iterator.cpp
@@ -132,14 +132,14 @@ static int Iterator_init(BPy_Iterator *self, PyObject *args, PyObject *kwds)
return 0;
}
-static void Iterator_dealloc(BPy_Iterator* self)
+static void Iterator_dealloc(BPy_Iterator *self)
{
if (self->it)
delete self->it;
- Py_TYPE(self)->tp_free((PyObject*)self);
+ Py_TYPE(self)->tp_free((PyObject *)self);
}
-static PyObject * Iterator_repr(BPy_Iterator* self)
+static PyObject *Iterator_repr(BPy_Iterator *self)
{
return PyUnicode_FromFormat("type: %s - address: %p", Py_TYPE(self)->tp_name, self->it);
}
@@ -149,10 +149,10 @@ PyDoc_STRVAR(Iterator_increment_doc,
"\n"
" Makes the iterator point the next element.");
-static PyObject * Iterator_increment(BPy_Iterator* self)
+static PyObject *Iterator_increment(BPy_Iterator *self)
{
if (self->it->isEnd()) {
- PyErr_SetString(PyExc_RuntimeError , "cannot increment any more");
+ PyErr_SetString(PyExc_RuntimeError, "cannot increment any more");
return NULL;
}
self->it->increment();
@@ -164,10 +164,10 @@ PyDoc_STRVAR(Iterator_decrement_doc,
"\n"
" Makes the iterator point the previous element.");
-static PyObject * Iterator_decrement(BPy_Iterator* self)
+static PyObject *Iterator_decrement(BPy_Iterator *self)
{
if (self->it->isBegin()) {
- PyErr_SetString(PyExc_RuntimeError , "cannot decrement any more");
+ PyErr_SetString(PyExc_RuntimeError, "cannot decrement any more");
return NULL;
}
self->it->decrement();