summaryrefslogtreecommitdiff
path: root/i18npool/qa
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-11-06 15:07:46 -0200
committerStephan Bergmann <sbergman@redhat.com>2013-11-07 10:43:34 -0600
commitbcb51cff22f385abe71555f8d7fdbec2697bf188 (patch)
tree4ca8f3c2b755a018f96d03ff43da2dc0ee0f6c69 /i18npool/qa
parentd877941fc7bb690d0c5b132a914920cf65f8abb2 (diff)
fdo#63020: Replace ::comphelper::stl_begin()...
And use some templates inside include/com/sun/star/uno/Sequence.hxx Change-Id: I48875fa1517751fc4cb0cf2b6c08b88975a29b47 Reviewed-on: https://gerrit.libreoffice.org/6599 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18npool/qa')
-rw-r--r--i18npool/qa/cppunit/test_ordinalsuffix.cxx21
1 files changed, 10 insertions, 11 deletions
diff --git a/i18npool/qa/cppunit/test_ordinalsuffix.cxx b/i18npool/qa/cppunit/test_ordinalsuffix.cxx
index 7b08aef44539..eb6cd0c76d2e 100644
--- a/i18npool/qa/cppunit/test_ordinalsuffix.cxx
+++ b/i18npool/qa/cppunit/test_ordinalsuffix.cxx
@@ -9,7 +9,6 @@
#include <algorithm>
#include <com/sun/star/i18n/XOrdinalSuffix.hpp>
#include <com/sun/star/lang/Locale.hpp>
-#include <comphelper/stlunosequence.hxx>
#include <unotest/bootstrapfixturebase.hxx>
using namespace com::sun::star;
@@ -53,15 +52,15 @@ void TestOrdinalSuffix::testFrench()
//1er
aSuffixes = m_xOrdinal->getOrdinalSuffix(1, aLocale);
- pStart = comphelper::stl_begin(aSuffixes);
- pEnd = comphelper::stl_end(aSuffixes);
+ pStart = aSuffixes.begin();
+ pEnd = aSuffixes.end();
pFind = std::find(pStart, pEnd, OUString("er"));
CPPUNIT_ASSERT(pFind != pEnd);
//2e, 3e, etc.
aSuffixes = m_xOrdinal->getOrdinalSuffix(2, aLocale);
- pStart = comphelper::stl_begin(aSuffixes);
- pEnd = comphelper::stl_end(aSuffixes);
+ pStart = aSuffixes.begin();
+ pEnd = aSuffixes.end();
pFind = std::find(pStart, pEnd, OUString("e"));
CPPUNIT_ASSERT(pFind != pEnd);
}
@@ -74,22 +73,22 @@ void TestOrdinalSuffix::testEnglish()
//1st
aSuffixes = m_xOrdinal->getOrdinalSuffix(1, aLocale);
- pStart = comphelper::stl_begin(aSuffixes);
- pEnd = comphelper::stl_end(aSuffixes);
+ pStart = aSuffixes.begin();
+ pEnd = aSuffixes.end();
pFind = std::find(pStart, pEnd, OUString("st"));
CPPUNIT_ASSERT(pFind != pEnd);
//2nd
aSuffixes = m_xOrdinal->getOrdinalSuffix(2, aLocale);
- pStart = comphelper::stl_begin(aSuffixes);
- pEnd = comphelper::stl_end(aSuffixes);
+ pStart = aSuffixes.begin();
+ pEnd = aSuffixes.end();
pFind = std::find(pStart, pEnd, OUString("nd"));
CPPUNIT_ASSERT(pFind != pEnd);
//3rd
aSuffixes = m_xOrdinal->getOrdinalSuffix(3, aLocale);
- pStart = comphelper::stl_begin(aSuffixes);
- pEnd = comphelper::stl_end(aSuffixes);
+ pStart = aSuffixes.begin();
+ pEnd = aSuffixes.end();
pFind = std::find(pStart, pEnd, OUString("rd"));
CPPUNIT_ASSERT(pFind != pEnd);
}