From 2fb82920059257fd7ac8e33bfe53de13e7ed53bd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 16 Sep 2012 04:58:18 +0000 Subject: style cleanup --- source/gameengine/VideoTexture/BlendType.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'source/gameengine/VideoTexture/BlendType.h') diff --git a/source/gameengine/VideoTexture/BlendType.h b/source/gameengine/VideoTexture/BlendType.h index 0131cc61c44..e19aadc49d2 100644 --- a/source/gameengine/VideoTexture/BlendType.h +++ b/source/gameengine/VideoTexture/BlendType.h @@ -37,7 +37,7 @@ public: BlendType (const char * name) : m_name(name) {} /// check blender type and return pointer to contained object or NULL (if type is not valid) - PyObj * checkType (PyObject * obj) + PyObj *checkType(PyObject *obj) { // if pointer to type isn't set if (m_objType == NULL) @@ -55,17 +55,18 @@ public: return NULL; // return pointer to object, this class can only be used for KX object => // the Py object is actually a proxy - return (PyObj*)BGE_PROXY_REF(obj); + return (PyObj *)BGE_PROXY_REF(obj); } /// parse arguments to get object - PyObj * parseArg (PyObject * args) + PyObj *parseArg(PyObject *args) { // parse arguments - PyObject * obj; - if (PyArg_ParseTuple(args, "O", &obj)) + PyObject *obj; + if (PyArg_ParseTuple(args, "O", &obj)) { // if successfully parsed, return pointer to object return checkType(obj); + } // otherwise return NULL return NULL; } @@ -74,7 +75,7 @@ protected: /// name of Python type const char * m_name; /// pointer to Python type - PyTypeObject * m_objType; + PyTypeObject *m_objType; }; -- cgit v1.2.3