diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-14 14:27:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-15 14:33:57 +0200 |
commit | f13c6ad5f020a196a0e3aa6f28bda3dc185d465b (patch) | |
tree | f9aaab122974d36c134fb1723ec3c1c8df51eeef /test/source | |
parent | 9270f74466d0eb841babaa24997f608631c70341 (diff) |
new loplugin:bufferadd
look for OUStringBuffer append sequences that can be turned
into creating an OUString with + operations
Change-Id: Ica840dc096000307b4a105fb4d9ec7588a15ade6
Reviewed-on: https://gerrit.libreoffice.org/80809
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test/source')
-rw-r--r-- | test/source/bootstrapfixture.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx index 6279ec8d8633..545dfe5516f6 100644 --- a/test/source/bootstrapfixture.cxx +++ b/test/source/bootstrapfixture.cxx @@ -43,10 +43,10 @@ using namespace ::com::sun::star; static void aBasicErrorFunc( const OUString &rErr, const OUString &rAction ) { - OStringBuffer aErr( "Unexpected dialog: " ); - aErr.append( OUStringToOString( rAction, RTL_TEXTENCODING_ASCII_US ) ); - aErr.append( " Error: " ); - aErr.append( OUStringToOString( rErr, RTL_TEXTENCODING_ASCII_US ) ); + OString aErr = "Unexpected dialog: " + + OUStringToOString( rAction, RTL_TEXTENCODING_ASCII_US ) + + " Error: " + + OUStringToOString( rErr, RTL_TEXTENCODING_ASCII_US ); CPPUNIT_ASSERT_MESSAGE( aErr.getStr(), false); } |