summaryrefslogtreecommitdiff
path: root/framework/source/dispatch/servicehandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/dispatch/servicehandler.cxx')
-rw-r--r--framework/source/dispatch/servicehandler.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/source/dispatch/servicehandler.cxx b/framework/source/dispatch/servicehandler.cxx
index a7a100bd19c1..bff05e79f1eb 100644
--- a/framework/source/dispatch/servicehandler.cxx
+++ b/framework/source/dispatch/servicehandler.cxx
@@ -94,9 +94,10 @@ css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL Serv
{
sal_Int32 nCount = lDescriptor.getLength();
css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > lDispatcher( nCount );
+ auto lDispatcherRange = asNonConstRange(lDispatcher);
for( sal_Int32 i=0; i<nCount; ++i )
{
- lDispatcher[i] = queryDispatch(
+ lDispatcherRange[i] = queryDispatch(
lDescriptor[i].FeatureURL,
lDescriptor[i].FrameName,
lDescriptor[i].SearchFlags);