diff options
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno.cxx | 4 | ||||
-rw-r--r-- | pyuno/source/module/pyuno_iterator.cxx | 2 |
2 files changed, 2 insertions, 4 deletions
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 { |