diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-25 12:36:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-25 12:38:36 +0200 |
commit | 346938fa26343314a0836bf3347a48fe3342fd74 (patch) | |
tree | affbf94b5361226ea302ded1749ab490564a673c /i18npool/qa | |
parent | 995296ea1d48636363a3a80068ceeb002b8bedb8 (diff) |
loplugin:stringconstant: Flag more inefficiencies
Change-Id: I7ef1dc1d42237ef101731b363359801d9e1e9db6
Diffstat (limited to 'i18npool/qa')
-rw-r--r-- | i18npool/qa/cppunit/test_breakiterator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx index e0a797b73199..d06c2b203170 100644 --- a/i18npool/qa/cppunit/test_breakiterator.cxx +++ b/i18npool/qa/cppunit/test_breakiterator.cxx @@ -342,7 +342,7 @@ void TestBreakIterator::testWordBoundaries() const sal_Int32 aSinglePositions[] = {0, 1, 3, 4, 6, 7, 9, 10}; for (size_t j = 1; j < SAL_N_ELEMENTS(aTests); ++j) { - OUString aTest = aBase.replaceAll(OUString("xx"), OUString(aTests[j])); + OUString aTest = aBase.replaceAll("xx", OUString(aTests[j])); sal_Int32 nPos = -1; size_t i = 0; do @@ -365,7 +365,7 @@ void TestBreakIterator::testWordBoundaries() const sal_Int32 aSingleQuotePositions[] = {0, 1, 9, 10}; CPPUNIT_ASSERT(aTests[0] == '\''); { - OUString aTest = aBase.replaceAll(OUString("xx"), OUString(aTests[0])); + OUString aTest = aBase.replaceAll("xx", OUString(aTests[0])); sal_Int32 nPos = -1; size_t i = 0; do |