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

@@ -162,7 +162,7 @@ Py::Object ExpressionBindingPy::setAutoApply(const Py::Tuple& args)
if (!PyArg_ParseTuple(args.ptr(), "O!", &PyBool_Type, &b))
throw Py::Exception();
bool value = PyObject_IsTrue(b) ? true : false;
bool value = Base::asBoolean(b);
expr->setAutoApply(value);
return Py::None();
}