+ fix strict-aliasing warnings

This commit is contained in:
wmayer
2015-08-29 19:48:08 +02:00
parent 023de9b0f8
commit 1a12d109e9
9 changed files with 34 additions and 241 deletions

View File

@@ -185,14 +185,8 @@ PyObject* DocumentObjectGroupPy::hasObject(PyObject *args)
return NULL;
}
if (getDocumentObjectGroupPtr()->hasObject(docObj->getDocumentObjectPtr())) {
Py_INCREF(Py_True);
return Py_True;
}
else {
Py_INCREF(Py_False);
return Py_False;
}
bool v = getDocumentObjectGroupPtr()->hasObject(docObj->getDocumentObjectPtr());
return PyBool_FromLong(v ? 1 : 0);
}
PyObject *DocumentObjectGroupPy::getCustomAttributes(const char* /*attr*/) const