diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx index 6c55a5053ca0..eeb039aac843 100644 --- a/pyuno/source/module/pyuno_module.cxx +++ b/pyuno/source/module/pyuno_module.cxx @@ -102,9 +102,9 @@ public: { Py_DECREF(used); } - void setUsed(PyObject *key) + int setUsed(PyObject *key) { - PyDict_SetItem(used, key, Py_True); + return PyDict_SetItem(used, key, Py_True); } void setInitialised(const OUString& key, sal_Int32 pos = -1) {