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:
Noel
2020-11-05 12:57:00 +01:00
committed by Noel Grandin
parent 663aab4c2d
commit 00aafa2e01
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -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);
+1 -1
View File
@@ -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 {