summaryrefslogtreecommitdiff
path: root/xmlsecurity/workben
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-08-17 01:11:11 +0200
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-17 07:48:21 +0000
commit4f20c9f6f95c117bcdb520682df4fa1429a56477 (patch)
treef0e1ec5882b9d67a23f99135f91ac86b8f9f832c /xmlsecurity/workben
parent523a1c00e1bf4da53daaa0fbaadc670f8b89ea37 (diff)
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.cxx7
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;