diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-08-17 01:11:11 +0200 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-08-17 07:48:21 +0000 |
commit | 4f20c9f6f95c117bcdb520682df4fa1429a56477 (patch) | |
tree | f0e1ec5882b9d67a23f99135f91ac86b8f9f832c /xmlsecurity/workben | |
parent | enable binary package option for a set of 'stable' libraries (diff) | |
download | core-4f20c9f6f95c117bcdb520682df4fa1429a56477.tar.gz core-4f20c9f6f95c117bcdb520682df4fa1429a56477.zip |
fdo#57950: Remove some chained appends in xmlsecurity
Change-Id: If70fa38ad4836b6dacdd0c5577c66b78be6826a6
Reviewed-on: https://gerrit.libreoffice.org/5465
Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
Diffstat (limited to 'xmlsecurity/workben')
-rw-r--r-- | xmlsecurity/workben/signaturetest.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmlsecurity/workben/signaturetest.cxx b/xmlsecurity/workben/signaturetest.cxx index 1346ac3673e3..4d1a6f4397a3 100644 --- a/xmlsecurity/workben/signaturetest.cxx +++ b/xmlsecurity/workben/signaturetest.cxx @@ -296,13 +296,12 @@ IMPL_LINK_NOARG(MyWin, VerifyDigitalSignaturesHdl) for ( int n = 0; n < nInfos; n++ ) { security::DocumentSignatureInformation& rInf = aInfos[n]; - OUStringBuffer aText( "The document is signed by\n\n " ); - aText.append( rInf.Signer->getSubjectName() ); - aText.append( "\n\n The signature is " ); + OUString aText = "The document is signed by\n\n " + rInf.Signer->getSubjectName() + + "\n\n The signature is "; if ( !rInf.SignatureIsValid ) aText.append( "NOT " ); aText.append( "valid" ); - InfoBox( this, aText.makeStringAndClear() ).Execute(); + InfoBox( this, aText ).Execute(); } return 0; |