diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 12:53:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 20:22:18 +0200 |
commit | f23f9d38db7e0b586130af88c7424cc3d85bc2d2 (patch) | |
tree | ba8c0129c84d768b1dcff39f6d9b05f389235ea1 /scripting/source/vbaevents | |
parent | 16d7e22d78cdeac149ee874f803292b3e2634e0a (diff) |
loplugin:sequenceloop in scaddins..scripting
Change-Id: I25044332e107b630b257e48d95ee9272145ed344
Reviewed-on: https://gerrit.libreoffice.org/77524
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting/source/vbaevents')
-rw-r--r-- | scripting/source/vbaevents/eventhelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index 0cdf6221cc25..7696956fdcc2 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -380,7 +380,7 @@ ScriptEventHelper::getEventListeners() Reference< beans::XIntrospectionAccess > xIntrospectionAccess = xIntrospection->inspect( makeAny( m_xControl ) ); - Sequence< Type > aControlListeners = + const Sequence< Type > aControlListeners = xIntrospectionAccess->getSupportedListeners(); for ( const Type& listType : aControlListeners ) { @@ -397,7 +397,7 @@ ScriptEventHelper::getEventListeners() Sequence< ScriptEventDescriptor > ScriptEventHelper::createEvents( const OUString& sCodeName ) { - Sequence< OUString > aControlListeners = getEventListeners(); + const Sequence< OUString > aControlListeners = getEventListeners(); sal_Int32 nLength = aControlListeners.getLength(); Sequence< ScriptEventDescriptor > aDest( nLength ); |