summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-19 09:14:59 +0200
committerNoel Grandin <noel@peralex.com>2015-11-19 09:33:29 +0200
commit2554efabb6d7cd2ad9f7cfdddd0712c25cdca1cd (patch)
tree1b8fd3940910ffcd328e16a53e208c099f67ab21 /linguistic
parentf7b5f477bfd942e0a1d8880c372635000d724dd7 (diff)
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.cxx10
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