diff --git a/src/Mod/Part/App/PartFeaturePyImp.cpp b/src/Mod/Part/App/PartFeaturePyImp.cpp index d338ffe6aa..5d02cc1df0 100644 --- a/src/Mod/Part/App/PartFeaturePyImp.cpp +++ b/src/Mod/Part/App/PartFeaturePyImp.cpp @@ -22,6 +22,8 @@ #include "PreCompiled.h" +#include + #include "PartFeature.h" // inclusion of the generated files (generated out of PartFeaturePy.xml) @@ -42,9 +44,11 @@ PyObject *PartFeaturePy::getElementHistory(PyObject *args, PyObject *kwds) { PyObject *recursive = Py_True; PyObject *sameType = Py_False; PyObject *showName = Py_False; - static char *kwlist[] = {"elementName", "recursive", "sameType", "showName", nullptr}; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|OOO", kwlist, &name, &recursive, &sameType, &showName)) + + static const std::array kwlist{"elementName", "recursive", "sameType", "showName", nullptr}; + if (!Base::Wrapped_ParseTupleAndKeywords(args, kwds, "s|OOO", kwlist, &name, &recursive, &sameType, &showName)) { return {}; + } auto feature = getFeaturePtr(); Py::List list;