From 346938fa26343314a0836bf3347a48fe3342fd74 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 25 Jun 2015 12:36:59 +0200 Subject: loplugin:stringconstant: Flag more inefficiencies Change-Id: I7ef1dc1d42237ef101731b363359801d9e1e9db6 --- i18npool/qa/cppunit/test_breakiterator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'i18npool') 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 -- cgit