diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-19 09:14:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-19 09:33:29 +0200 |
commit | 2554efabb6d7cd2ad9f7cfdddd0712c25cdca1cd (patch) | |
tree | 1b8fd3940910ffcd328e16a53e208c099f67ab21 /linguistic | |
parent | Simplify writerfilter::dmapper::DomainMapper_Impl::appendGrabBag() (diff) | |
download | core-2554efabb6d7cd2ad9f7cfdddd0712c25cdca1cd.tar.gz core-2554efabb6d7cd2ad9f7cfdddd0712c25cdca1cd.zip |
use comphelper::containerToSequence
in chart2, we remove a local equivalent of the method
Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/dlistimp.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
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 <cppuhelper/supportsservice.hxx> #include <unotools/localfilehelper.hxx> #include <comphelper/processfactory.hxx> +#include <comphelper/sequence.hxx> #include <unotools/ucbstreamhelper.hxx> #include <com/sun/star/frame/XStorable.hpp> #include <com/sun/star/lang/Locale.hpp> @@ -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 |