Small code style changes.

This commit is contained in:
Hugo Parente Lima 2011-12-13 16:58:30 -02:00
commit 7b8d2925dd

View file

@ -61,10 +61,8 @@ extern "C" {
static long getNumberValue(PyObject* v) static long getNumberValue(PyObject* v)
{ {
PyObject* number = PyNumber_Long(v); Shiboken::AutoDecRef number(PyNumber_Long(v));
long result = PyLong_AsLong(number); return PyLong_AsLong(number);
Py_XDECREF(number);
return result;
} }
PyObject* PySideQFlagsRichCompare(PyObject* self, PyObject* other, int op) PyObject* PySideQFlagsRichCompare(PyObject* self, PyObject* other, int op)