summaryrefslogtreecommitdiff
path: root/unotools
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 /unotools
parentf7b5f477bfd942e0a1d8880c372635000d724dd7 (diff)
use comphelper::containerToSequence
in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/misc/syslocale.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/unotools/source/misc/syslocale.cxx b/unotools/source/misc/syslocale.cxx
index 303b31bedc46..e93e620a5049 100644
--- a/unotools/source/misc/syslocale.cxx
+++ b/unotools/source/misc/syslocale.cxx
@@ -24,6 +24,7 @@
#include <unotools/syslocale.hxx>
#include <unotools/syslocaleoptions.hxx>
#include <comphelper/processfactory.hxx>
+#include <comphelper/sequence.hxx>
#include <rtl/tencinfo.h>
#include <rtl/locale.h>
#include <osl/thread.h>
@@ -106,10 +107,7 @@ void SvtSysLocale_Impl::setDateAcceptancePatternsConfig()
if (!aTok.isEmpty())
aVec.push_back( aTok);
}
- uno::Sequence< OUString > aSeq( aVec.size());
- for (sal_Int32 i=0; i < aSeq.getLength(); ++i)
- aSeq[i] = aVec[i];
- pLocaleData->setDateAcceptancePatterns( aSeq);
+ pLocaleData->setDateAcceptancePatterns( comphelper::containerToSequence(aVec) );
}
}