From a378ece3831f3639022a6fb5543c279f517c7535 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 1 Sep 2016 09:32:23 +0200 Subject: std::list to vector Change-Id: If1fbab63446ed7d1627f542a7aac4a9eb2fa6c88 --- sfx2/source/appl/appdispatchprovider.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/appdispatchprovider.cxx b/sfx2/source/appl/appdispatchprovider.cxx index 11cc76d5bd60..cc947c5a3f87 100644 --- a/sfx2/source/appl/appdispatchprovider.cxx +++ b/sfx2/source/appl/appdispatchprovider.cxx @@ -181,7 +181,7 @@ throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; - std::list< sal_Int16 > aGroupList; + std::vector< sal_Int16 > aGroupList; SfxSlotPool* pAppSlotPool = &SfxGetpApp()->GetAppSlotPool_Impl(); const SfxSlotMode nMode( SfxSlotMode::TOOLBOXCONFIG|SfxSlotMode::ACCELCONFIG|SfxSlotMode::MENUCONFIG ); @@ -203,10 +203,7 @@ throw (uno::RuntimeException, std::exception) } } - uno::Sequence< sal_Int16 > aSeq = - comphelper::containerToSequence< sal_Int16, std::list< sal_Int16 > >( aGroupList ); - - return aSeq; + return comphelper::containerToSequence< sal_Int16 >( aGroupList ); } Sequence< frame::DispatchInformation > SAL_CALL SfxAppDispatchProvider::getConfigurableDispatchInformation( sal_Int16 nCmdGroup ) -- cgit