From 2554efabb6d7cd2ad9f7cfdddd0712c25cdca1cd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 19 Nov 2015 09:14:59 +0200 Subject: use comphelper::containerToSequence in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100 --- linguistic/source/dlistimp.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'linguistic') diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index 15ed050b55d5..525da700f7b4 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -404,14 +405,7 @@ uno::Sequence< uno::Reference< XDictionary > > SAL_CALL DictionaryVec_t& rDicList = GetOrCreateDicList(); - uno::Sequence< uno::Reference< XDictionary > > aDics( rDicList.size() ); - uno::Reference< XDictionary > *pDic = aDics.getArray(); - - sal_Int32 n = (sal_uInt16) aDics.getLength(); - for (sal_Int32 i = 0; i < n; i++) - pDic[i] = rDicList[i]; - - return aDics; + return comphelper::containerToSequence(rDicList); } uno::Reference< XDictionary > SAL_CALL -- cgit