pyuno/source/module/pyuno.cxx | 4 +--- pyuno/source/module/pyuno_iterator.cxx | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-)
New commits: commit 00aafa2e0140742983ec6e6e916636d23794dfe3 Author: Noel <noelgran...@gmail.com> AuthorDate: Thu Nov 5 11:24:50 2020 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Nov 5 12:57:00 2020 +0100 loplugin:reducevarscope in pyuno Change-Id: I49157f373b0d5919492a0ba4ccdcd545c58730a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105333 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx index 25aea6436032..25ae588d6d58 100644 --- a/pyuno/source/module/pyuno.cxx +++ b/pyuno/source/module/pyuno.cxx @@ -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); diff --git a/pyuno/source/module/pyuno_iterator.cxx b/pyuno/source/module/pyuno_iterator.cxx index 840fc977014a..b5dcf78695a8 100644 --- a/pyuno/source/module/pyuno_iterator.cxx +++ b/pyuno/source/module/pyuno_iterator.cxx @@ -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 { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits