Core: replace PyObject_IsTrue with Base::asBoolean

This commit is contained in:
wmayer
2022-07-16 14:04:05 +02:00
parent d1ef818f39
commit 201f4c9a5a
21 changed files with 68 additions and 69 deletions

View File

@@ -175,7 +175,7 @@ PyObject* LinkViewPy::setType(PyObject *args) {
return nullptr;
PY_TRY{
getLinkViewPtr()->setNodeType((LinkView::SnapshotType)type, PyObject_IsTrue(sublink) ? true : false);
getLinkViewPtr()->setNodeType((LinkView::SnapshotType)type, Base::asBoolean(sublink));
Py_Return;
} PY_CATCH;
}