summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/helpinterceptor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/appl/helpinterceptor.cxx')
-rw-r--r--sfx2/source/appl/helpinterceptor.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sfx2/source/appl/helpinterceptor.cxx b/sfx2/source/appl/helpinterceptor.cxx
index 0b6034a6c0da..90f95151da26 100644
--- a/sfx2/source/appl/helpinterceptor.cxx
+++ b/sfx2/source/appl/helpinterceptor.cxx
@@ -132,12 +132,9 @@ Sequence < Reference < XDispatch > > SAL_CALL HelpInterceptor_Impl::queryDispatc
{
Sequence< Reference< XDispatch > > aReturn( aDescripts.getLength() );
- Reference< XDispatch >* pReturn = aReturn.getArray();
- const DispatchDescriptor* pDescripts = aDescripts.getConstArray();
- for ( sal_Int32 i = 0; i < aDescripts.getLength(); ++i, ++pReturn, ++pDescripts )
- {
- *pReturn = queryDispatch( pDescripts->FeatureURL, pDescripts->FrameName, pDescripts->SearchFlags );
- }
+ std::transform(aDescripts.begin(), aDescripts.end(), aReturn.begin(),
+ [this](const DispatchDescriptor& rDescr) -> Reference<XDispatch> {
+ return queryDispatch(rDescr.FeatureURL, rDescr.FrameName, rDescr.SearchFlags); });
return aReturn;
}