[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54732] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/python: Code clean-up: Py_TYPE(self)-> tp_name instead of ((PyObject *)self)->ob_type->tp_name.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Fri Feb 22 02:29:52 CET 2013


Revision: 54732
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54732
Author:   kjym3
Date:     2013-02-22 01:29:50 +0000 (Fri, 22 Feb 2013)
Log Message:
-----------
Code clean-up: Py_TYPE(self)->tp_name instead of ((PyObject *)self)->ob_type->tp_name.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface0D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface1D.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Iterator.cpp

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface0D.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface0D.cpp	2013-02-22 00:51:58 UTC (rev 54731)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface0D.cpp	2013-02-22 01:29:50 UTC (rev 54732)
@@ -134,7 +134,7 @@
 
 static PyObject *Interface0D_name_get(BPy_Interface0D *self, void *UNUSED(closure))
 {
-	return PyUnicode_FromString(((PyObject *)self)->ob_type->tp_name);
+	return PyUnicode_FromString(Py_TYPE(self)->tp_name);
 }
 
 PyDoc_STRVAR(Interface0D_point_3d_doc,

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface1D.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface1D.cpp	2013-02-22 00:51:58 UTC (rev 54731)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface1D.cpp	2013-02-22 01:29:50 UTC (rev 54732)
@@ -200,7 +200,7 @@
 
 static PyObject *Interface1D_name_get(BPy_Interface1D *self, void *UNUSED(closure))
 {
-	return PyUnicode_FromString(((PyObject *)self)->ob_type->tp_name);
+	return PyUnicode_FromString(Py_TYPE(self)->tp_name);
 }
 
 PyDoc_STRVAR(Interface1D_id_doc,

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Iterator.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Iterator.cpp	2013-02-22 00:51:58 UTC (rev 54731)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Iterator.cpp	2013-02-22 01:29:50 UTC (rev 54732)
@@ -158,7 +158,7 @@
 
 static PyObject *Iterator_name_get(BPy_Iterator *self, void *UNUSED(closure))
 {
-	return PyUnicode_FromString(((PyObject *)self)->ob_type->tp_name);
+	return PyUnicode_FromString(Py_TYPE(self)->tp_name);
 }
 
 PyDoc_STRVAR(Iterator_is_begin_doc,




More information about the Bf-blender-cvs mailing list