summaryrefslogtreecommitdiff
path: root/i18npool/qa/cppunit/test_ordinalsuffix.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/qa/cppunit/test_ordinalsuffix.cxx')
-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);
}