diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 15:53:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-09 07:48:18 +0000 |
commit | 389999abdb2d35f8641a6ff2e8984887166d39e2 (patch) | |
tree | 746ae9503700b07bb84938c8899a24aeb8b8fcd8 /sfx2/source/appl/appdispatchprovider.cxx | |
parent | 57998f642de65bdcb72742abd8ab94a26840a31d (diff) |
make comphelper::containerToSequence a little smarter
So we don't have to specify the source and destination type as often.
Change-Id: Id9e286417a1cb246d163cbc3c536b231a4a92624
Reviewed-on: https://gerrit.libreoffice.org/30700
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/appl/appdispatchprovider.cxx')
-rw-r--r-- | sfx2/source/appl/appdispatchprovider.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sfx2/source/appl/appdispatchprovider.cxx b/sfx2/source/appl/appdispatchprovider.cxx index c425d9d5150f..2f2a53d289c9 100644 --- a/sfx2/source/appl/appdispatchprovider.cxx +++ b/sfx2/source/appl/appdispatchprovider.cxx @@ -205,7 +205,7 @@ throw (uno::RuntimeException, std::exception) } } - return comphelper::containerToSequence< sal_Int16 >( aGroupList ); + return comphelper::containerToSequence( aGroupList ); } Sequence< frame::DispatchInformation > SAL_CALL SfxAppDispatchProvider::getConfigurableDispatchInformation( sal_Int16 nCmdGroup ) @@ -249,10 +249,7 @@ throw (uno::RuntimeException, std::exception) } } - uno::Sequence< frame::DispatchInformation > aSeq = - comphelper::containerToSequence< frame::DispatchInformation, std::list< frame::DispatchInformation > >( aCmdList ); - - return aSeq; + return comphelper::containerToSequence( aCmdList ); } } |