X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/7d7ca8ee2eaae704989a1552ad429794d402f550..be7160f4c15f23e853a3a0ad7b0ad54107ed9ca1:/lib/base/nconfig.cpp diff --git a/lib/base/nconfig.cpp b/lib/base/nconfig.cpp index 878f4837..31b0a36f 100644 --- a/lib/base/nconfig.cpp +++ b/lib/base/nconfig.cpp @@ -1,9 +1,9 @@ #include #include -PyObject *ePythonConfigQuery::m_queryFunc; +ePyObject ePythonConfigQuery::m_queryFunc; -void ePythonConfigQuery::setQueryFunc(PyObject *queryFunc) +void ePythonConfigQuery::setQueryFunc(ePyObject queryFunc) { if (m_queryFunc) Py_DECREF(m_queryFunc); @@ -16,9 +16,9 @@ RESULT ePythonConfigQuery::getConfigValue(const char *key, std::string &value) { if (key && PyCallable_Check(m_queryFunc)) { - PyObject *pArgs = PyTuple_New(1); + ePyObject pArgs = PyTuple_New(1); PyTuple_SET_ITEM(pArgs, 0, PyString_FromString(key)); - PyObject *pRet = PyObject_CallObject(m_queryFunc, pArgs); + ePyObject pRet = PyObject_CallObject(m_queryFunc, pArgs); Py_DECREF(pArgs); if (pRet) {