From 6af36bae47e34c51b0f063e938554db3a922eed6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 1 Sep 2016 09:33:10 +0200 Subject: std::list to vector Change-Id: I4129ea523bd3e4882ff776328b46c72abf9f918f --- sfx2/source/view/sfxbasecontroller.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx index 11c316c7ffd4..e2db91966619 100644 --- a/sfx2/source/view/sfxbasecontroller.cxx +++ b/sfx2/source/view/sfxbasecontroller.cxx @@ -1145,7 +1145,7 @@ throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; - std::list< sal_Int16 > aGroupList; + std::vector< sal_Int16 > aGroupList; SfxViewFrame* pViewFrame( m_pData->m_pViewShell->GetFrame() ); SfxSlotPool* pPool = &SfxSlotPool::GetSlotPool( pViewFrame ); @@ -1169,9 +1169,7 @@ throw (RuntimeException, std::exception) } } - uno::Sequence< sal_Int16 > aSeq = - comphelper::containerToSequence< sal_Int16 >( aGroupList ); - return aSeq; + return comphelper::containerToSequence< sal_Int16 >( aGroupList ); } uno::Sequence< frame::DispatchInformation > SAL_CALL SfxBaseController::getConfigurableDispatchInformation( sal_Int16 nCmdGroup ) -- cgit