use auto type when assigning from cast or using new
This commit is contained in:
@ -238,7 +238,7 @@ void PythonImpl::command(int narg, char **arg)
|
||||
|
||||
// pFunc = function object for requested function
|
||||
|
||||
PyObject *pModule = (PyObject *) pyMain;
|
||||
auto pModule = (PyObject *) pyMain;
|
||||
PyObject *pFunc = PyObject_GetAttrString(pModule, pfuncs[ifunc].name);
|
||||
|
||||
if (!pFunc) {
|
||||
@ -268,7 +268,7 @@ void PythonImpl::invoke_function(int ifunc, char *result)
|
||||
PyObject *pValue;
|
||||
char *str;
|
||||
|
||||
PyObject *pFunc = (PyObject *) pfuncs[ifunc].pFunc;
|
||||
auto pFunc = (PyObject *) pfuncs[ifunc].pFunc;
|
||||
|
||||
// create Python tuple of input arguments
|
||||
|
||||
|
||||
Reference in New Issue
Block a user