summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 12:34:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 20:21:55 +0200
commitaea932b58bbb2346fb5c1bc02bcfed3e43dedabc (patch)
tree9ea2c3ea1327740b441753fdfe6438b7a66dd2a0 /pyuno
parent39cc9ed863cee396e2bb31d38e1aa44d8c97ad6c (diff)
loplugin:sequenceloop in postprocess..reportdesign
Change-Id: I86b9174c37e4a347a3a8ac6c2707052167e6fdc0 Reviewed-on: https://gerrit.libreoffice.org/77522 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_struct.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno_struct.cxx b/pyuno/source/module/pyuno_struct.cxx
index 9ad9439318ce..64dc11499f6b 100644
--- a/pyuno/source/module/pyuno_struct.cxx
+++ b/pyuno/source/module/pyuno_struct.cxx
@@ -105,7 +105,8 @@ static PyObject* PyUNOStruct_dir( PyObject *self )
try
{
member_list = PyList_New( 0 );
- for( const auto& aMember : me->members->xInvocation->getMemberNames() )
+ const css::uno::Sequence<OUString> aMemberNames = me->members->xInvocation->getMemberNames();
+ for( const auto& aMember : aMemberNames )
{
// setitem steals a reference
PyList_Append( member_list, ustring2PyString( aMember ).getAcquired() );