loplugin:reducevarscope in pyuno
Change-Id: I49157f373b0d5919492a0ba4ccdcd545c58730a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105333 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -1363,14 +1363,12 @@ static int PyUNO_contains( PyObject *self, PyObject *pKey )
|
||||
|
||||
static PyObject* PyUNO_getattr (PyObject* self, char* name)
|
||||
{
|
||||
PyUNO* me;
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Runtime runtime;
|
||||
|
||||
me = reinterpret_cast<PyUNO*>(self);
|
||||
PyUNO* me = reinterpret_cast<PyUNO*>(self);
|
||||
if (strcmp (name, "__dict__") == 0)
|
||||
{
|
||||
Py_INCREF (Py_TYPE(me)->tp_dict);
|
||||
|
||||
@@ -211,10 +211,10 @@ static PyObject* PyUNO_list_iterator_next( PyObject *self )
|
||||
|
||||
Runtime runtime;
|
||||
Any aRet;
|
||||
bool noMoreElements = false;
|
||||
|
||||
try
|
||||
{
|
||||
bool noMoreElements = false;
|
||||
{
|
||||
PyThreadDetach antiguard;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user