diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-08-24 12:50:01 +0200 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-08-25 16:54:27 +0000 |
commit | 88011f4cdf050c2df0b7488e273332d4e7048012 (patch) | |
tree | e09b3b54665187cb210b9e87e7fb99218966c346 /sw/qa | |
parent | d4c97a522e269a8875a8dadea1f6d728e91d77f7 (diff) |
fdo#57950: Remove some chained appends in sw
Change-Id: Ib63fe1cf689d8f3cab4ca3571dd71f712e3fd7a5
Reviewed-on: https://gerrit.libreoffice.org/5602
Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/core/uwriter.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx index 20f974fe7746..0cbad1413391 100644 --- a/sw/qa/core/uwriter.cxx +++ b/sw/qa/core/uwriter.cxx @@ -275,23 +275,13 @@ void SwDocTest::testModelToViewHelper() { ModelToViewHelper aModelToViewHelper(*pTxtNode, HIDEINVISIBLE); OUString sViewText = aModelToViewHelper.getViewText(); - OUStringBuffer aBuffer; - aBuffer.append("AAAAA CCCCC "); - aBuffer.append(CH_TXTATR_BREAKWORD); - aBuffer.append(" DDDDD"); - CPPUNIT_ASSERT(sViewText == aBuffer.makeStringAndClear()); + CPPUNIT_ASSERT(sViewText == "AAAAA CCCCC " + OUString(CH_TXTATR_BREAKWORD) + " DDDDD"); } { ModelToViewHelper aModelToViewHelper(*pTxtNode, HIDEREDLINED); OUString sViewText = aModelToViewHelper.getViewText(); - OUStringBuffer aBuffer; - aBuffer.append("AAAABB "); - aBuffer.append(CH_TXTATR_BREAKWORD); - aBuffer.append(" CCCCC "); - aBuffer.append(CH_TXTATR_BREAKWORD); - aBuffer.append(" DDDDD"); - CPPUNIT_ASSERT(sViewText == aBuffer.makeStringAndClear()); + CPPUNIT_ASSERT(sViewText == "AAAABB " + OUString(CH_TXTATR_BREAKWORD) + " CCCCC " + OUString(CH_TXTATR_BREAKWORD) + " DDDDD"); } { |