summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/eventhandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/propctrlr/eventhandler.cxx')
-rw-r--r--extensions/source/propctrlr/eventhandler.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx
index 90df51b7c7ac..0cb98a68d822 100644
--- a/extensions/source/propctrlr/eventhandler.cxx
+++ b/extensions/source/propctrlr/eventhandler.cxx
@@ -712,22 +712,17 @@ namespace pcr
continue;
// loop through all methods
- Sequence< OUString > aMethods( comphelper::getEventMethodsForType( rListener ) );
-
- const OUString* pMethods = aMethods.getConstArray();
- sal_uInt32 methodCount = aMethods.getLength();
-
- for (sal_uInt32 method = 0 ; method < methodCount ; ++method, ++pMethods )
+ for (const OUString& rMethod : comphelper::getEventMethodsForType( rListener ))
{
EventDescription aEvent;
- if ( !lcl_getEventDescriptionForMethod( *pMethods, aEvent ) )
+ if ( !lcl_getEventDescriptionForMethod( rMethod, aEvent ) )
continue;
if ( !impl_filterMethod_nothrow( aEvent ) )
continue;
m_aEvents.emplace(
- lcl_getEventPropertyName( sListenerClassName, *pMethods ), aEvent );
+ lcl_getEventPropertyName( sListenerClassName, rMethod ), aEvent );
}
}