diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-02-22 05:29:50 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-02-22 05:29:50 +0400 |
commit | 6cd036ab96fa50b280a6a0cfda7f09f1c1f57600 (patch) | |
tree | e876577d734269faa3c93d5ba8f13e8404e06a9c /source/blender/freestyle/intern/python/BPy_Interface1D.cpp | |
parent | b4e968391d2fb54ad6c78883b1216d48187bbca6 (diff) |
Code clean-up: Py_TYPE(self)->tp_name instead of ((PyObject *)self)->ob_type->tp_name.
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Interface1D.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_Interface1D.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Interface1D.cpp b/source/blender/freestyle/intern/python/BPy_Interface1D.cpp index 3511804c690..2851c09209a 100644 --- a/source/blender/freestyle/intern/python/BPy_Interface1D.cpp +++ b/source/blender/freestyle/intern/python/BPy_Interface1D.cpp @@ -200,7 +200,7 @@ PyDoc_STRVAR(Interface1D_name_doc, 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, |