Small code style changes.
This commit is contained in:
parent
c78b4686a1
commit
7b8d2925dd
1 changed files with 4 additions and 6 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue