summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/dialogs/macrosecurity.cxx
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/source/dialogs/macrosecurity.cxx
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/source/dialogs/macrosecurity.cxx')
-rw-r--r--xmlsecurity/source/dialogs/macrosecurity.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx
index 4ae1f481ab3a..70d03c77f1e7 100644
--- a/xmlsecurity/source/dialogs/macrosecurity.cxx
+++ b/xmlsecurity/source/dialogs/macrosecurity.cxx
@@ -361,10 +361,8 @@ MacroSecurityTrustedSourcesTP::MacroSecurityTrustedSourcesTP(Window* _pParent, M
static long aTabs[] = { 3, 0, 0, 0 };
m_pTrustCertLB->SetTabs( aTabs );
- OUStringBuffer aBuf(get<FixedText>("to")->GetText());
- aBuf.append("\t").append(get<FixedText>("by")->GetText())
- .append("\t").append(get<FixedText>("date")->GetText());
- m_pTrustCertLB->InsertHeaderEntry(aBuf.makeStringAndClear());
+ m_pTrustCertLB->InsertHeaderEntry(get<FixedText>("to")->GetText() + "\t"
+ + get<FixedText>("by")->GetText() + "\t" + get<FixedText>("date")->GetText());
m_pTrustCertLB->SetSelectHdl( LINK( this, MacroSecurityTrustedSourcesTP, TrustCertLBSelectHdl ) );
m_pViewCertPB->SetClickHdl( LINK( this, MacroSecurityTrustedSourcesTP, ViewCertPBHdl ) );