summaryrefslogtreecommitdiff
path: root/stoc/source/invocation/invocation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/source/invocation/invocation.cxx')
-rw-r--r--stoc/source/invocation/invocation.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx
index 8211828f90cf..694ffa2904b8 100644
--- a/stoc/source/invocation/invocation.cxx
+++ b/stoc/source/invocation/invocation.cxx
@@ -680,14 +680,10 @@ Any Invocation_Impl::invoke( const OUString& FunctionName, const Sequence<Any>&
// OUT Params
OutIndices.realloc( nOutIndex );
- pOutIndices = OutIndices.getArray();
OutParams.realloc( nOutIndex );
- Any* pOutParams = OutParams.getArray();
- while (nOutIndex--)
- {
- pOutParams[nOutIndex] = pInvokeParams[ pOutIndices[nOutIndex] ];
- }
+ std::transform(OutIndices.begin(), OutIndices.end(), OutParams.begin(),
+ [&pInvokeParams](const sal_Int16 nIndex) -> Any { return pInvokeParams[nIndex]; });
return aRet;
}