diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2015-08-22 13:08:41 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-08-22 13:04:12 +0000 |
commit | 7e318570dc0c0878bfd2a960230a26f7e5fe2bcf (patch) | |
tree | aa85e58d369f67297ad395addfd0dc6654dbfdee /pyuno | |
parent | 25accda781bc0bc79ca2e887c54ca981068bf407 (diff) |
tdf#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: Ie492fb9c106b37c3fe7b0105236ad6315f4f159e
Reviewed-on: https://gerrit.libreoffice.org/17921
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_iterator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno_iterator.cxx b/pyuno/source/module/pyuno_iterator.cxx index 9fa79719f093..58c6f504d6b5 100644 --- a/pyuno/source/module/pyuno_iterator.cxx +++ b/pyuno/source/module/pyuno_iterator.cxx @@ -63,11 +63,12 @@ PyObject* PyUNO_iterator_next( PyObject *self ) PyUNO_iterator* me = reinterpret_cast<PyUNO_iterator*>(self); Runtime runtime; - bool hasMoreElements = false; Any aRet; try { + bool hasMoreElements = false; + { PyThreadDetach antiguard; |