Kaydet (Commit) 346938fa authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: Flag more inefficiencies

Change-Id: I7ef1dc1d42237ef101731b363359801d9e1e9db6
üst 995296ea
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment