diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-06-04 09:11:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-06-04 14:33:50 +0200 |
commit | 3d20df43c450889ec0a8f61ea12df7338eb1ff97 (patch) | |
tree | d7cc7342ef284f4db8ae46a598f51800f5ea2ea3 /i18npool/qa | |
parent | 8d41357570ad2671b0053c462e33b1d78626dca0 (diff) |
Upcoming loplugin:elidestringvar: i18npool
Change-Id: I5644ca7f2ef1b251ce1c262d3001ca48f2ed9edd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95482
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18npool/qa')
-rw-r--r-- | i18npool/qa/cppunit/test_breakiterator.cxx | 4 | ||||
-rw-r--r-- | i18npool/qa/cppunit/test_textsearch.cxx | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx index a41cd821857c..3be0ea4e8d0d 100644 --- a/i18npool/qa/cppunit/test_breakiterator.cxx +++ b/i18npool/qa/cppunit/test_breakiterator.cxx @@ -113,14 +113,12 @@ void TestBreakIterator::testLineBreaking() //See https://bz.apache.org/ooo/show_bug.cgi?id=17155 { - OUString const aTest("foo /bar/baz"); - aLocale.Language = "en"; aLocale.Country = "US"; { //Here we want the line break to leave /bar/ba clumped together on the next line - i18n::LineBreakResults aResult = m_xBreak->getLineBreak(aTest, strlen("foo /bar/ba"), aLocale, 0, + i18n::LineBreakResults aResult = m_xBreak->getLineBreak("foo /bar/baz", strlen("foo /bar/ba"), aLocale, 0, aHyphOptions, aUserOptions); CPPUNIT_ASSERT_EQUAL_MESSAGE("Expected a break at the first slash", static_cast<sal_Int32>(4), aResult.breakIndex); } diff --git a/i18npool/qa/cppunit/test_textsearch.cxx b/i18npool/qa/cppunit/test_textsearch.cxx index b2175b21bfa5..3d157e2cbdb4 100644 --- a/i18npool/qa/cppunit/test_textsearch.cxx +++ b/i18npool/qa/cppunit/test_textsearch.cxx @@ -92,7 +92,6 @@ void TestTextSearch::testSearches() { OUString str( "acababaabcababadcdaa" ); sal_Int32 startPos = 2, endPos = 20 ; - OUString const searchStr( "(ab)*a(c|d)+" ); sal_Int32 const fStartRes = 10, fEndRes = 18 ; sal_Int32 const bStartRes = 18, bEndRes = 10 ; @@ -100,7 +99,7 @@ void TestTextSearch::testSearches() util::SearchOptions aOptions; aOptions.algorithmType = util::SearchAlgorithms_REGEXP ; aOptions.searchFlag = util::SearchFlags::ALL_IGNORE_CASE; - aOptions.searchString = searchStr; + aOptions.searchString = "(ab)*a(c|d)+"; m_xSearch->setOptions( aOptions ); util::SearchResult aRes; |