Base: fix several warnings reported by code analyzers

This commit is contained in:
wmayer
2022-08-02 13:04:50 +02:00
parent c6de515b20
commit 7824d7b1df
9 changed files with 40 additions and 27 deletions

View File

@@ -686,11 +686,11 @@ int InterpreterSingleton::runCommandLine(const char *prompt)
void InterpreterSingleton::runMethodVoid(PyObject *pobject, const char *method)
{
PyGILStateLocker locker;
if (PP_Run_Method(pobject , // object
method, // run method
nullptr, // no return type
nullptr, // so no return object
"()") // no arguments
if (PP_Run_Method(pobject , // object
method, // run method
nullptr, // no return type
nullptr, // so no return object
"()") // no arguments
!= 0)
throw PyException(/*"Error running InterpreterSingleton::RunMethodVoid()"*/);
@@ -701,11 +701,11 @@ PyObject* InterpreterSingleton::runMethodObject(PyObject *pobject, const char *m
PyObject *pcO;
PyGILStateLocker locker;
if (PP_Run_Method(pobject , // object
method, // run method
"O", // return type
&pcO, // return object
"()") // no arguments
if (PP_Run_Method(pobject , // object
method, // run method
"O", // return type
&pcO, // return object
"()") // no arguments
!= 0)
throw PyException();