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-18 13:53:54 +0000
commitb5e5ce956b463e90bb65ad99cefca33b9b0b13bf (patch)
tree7a372e4cf6c9a214177e4e5360d6ab551667435a /xmlsecurity/workben
parent4abb7e5c5874fd53fd4c7a758faa03fe8216a0ee (diff)
fdo#57950: Remove some chained appends in xmlsecurity
Change-Id: I35ac622abb995a9259f0774f463ec2816b3668b6 Reviewed-on: https://gerrit.libreoffice.org/5477 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;