From 7af4191e88e0ff888f0ad38377b0373eec65665f 2009-05-27 07:57:33 From: florianlink Date: 2009-05-27 07:57:33 Subject: [PATCH] fixed VC8 compilation git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@108 ea8d5007-eb21-0410-b261-ccb3ea6e24a9 --- diff --git a/src/PythonQtInstanceWrapper.cpp b/src/PythonQtInstanceWrapper.cpp index 5956b31..e3cfa99 100644 --- a/src/PythonQtInstanceWrapper.cpp +++ b/src/PythonQtInstanceWrapper.cpp @@ -277,14 +277,18 @@ static PyObject *PythonQtInstanceWrapper_getattro(PyObject *obj,PyObject *name) return PythonQtSlotFunction_New(member._slot, obj, NULL); break; case PythonQtMemberInfo::EnumValue: + { PyObject* enumValue = member._enumValue; Py_INCREF(enumValue); return enumValue; + } break; case PythonQtMemberInfo::EnumWrapper: + { PyObject* enumWrapper = member._enumWrapper; Py_INCREF(enumWrapper); return enumWrapper; + } break; default: // is an invalid type, go on