From fe3fd05966a668c1cdf53e8221b8614e9a07de65 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 19 Nov 2015 13:43:23 +0200 Subject: add mapKeysToSequence/mapValuesToSequence methods to comphelper and use them Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec Reviewed-on: https://gerrit.libreoffice.org/20055 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/form/formcontroller.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'svx/source/form/formcontroller.cxx') diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx index b9883714d1d5..ce7fa4d60649 100644 --- a/svx/source/form/formcontroller.cxx +++ b/svx/source/form/formcontroller.cxx @@ -4046,13 +4046,7 @@ void SAL_CALL FormController::invalidateAllFeatures( ) throw (RuntimeException, { ::osl::ClearableMutexGuard aGuard( m_aMutex ); - Sequence< sal_Int16 > aInterceptedFeatures( m_aFeatureDispatchers.size() ); - ::std::transform( - m_aFeatureDispatchers.begin(), - m_aFeatureDispatchers.end(), - aInterceptedFeatures.getArray(), - ::o3tl::select1st< DispatcherContainer::value_type >() - ); + Sequence< sal_Int16 > aInterceptedFeatures( comphelper::mapKeysToSequence(m_aFeatureDispatchers) ); aGuard.clear(); if ( aInterceptedFeatures.getLength() ) -- cgit