summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold Dumas <arnold@dumas.at>2016-07-03 11:14:12 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-03 15:48:42 +0000
commit68900bad945c847f62a614cd2c2653ef3a9827ca (patch)
tree5b6185959a445cd19130ac9526a69de93bf1fa33
parentd5784e91e9cd83336dc16392fd65cb11c5373c9c (diff)
tdf#57950: Replace chained OUStringBuffer::append() with operator+
Change-Id: I5e6cb493a5e742232cd312014d4b5b2820cf8314 Reviewed-on: https://gerrit.libreoffice.org/26878 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--cui/source/options/certpath.cxx5
-rw-r--r--cui/source/options/fontsubs.cxx9
2 files changed, 6 insertions, 8 deletions
diff --git a/cui/source/options/certpath.cxx b/cui/source/options/certpath.cxx
index d87807c46eff..cc0955fedf91 100644
--- a/cui/source/options/certpath.cxx
+++ b/cui/source/options/certpath.cxx
@@ -205,9 +205,8 @@ void CertPathDialog::AddCertPath(const OUString &rProfile, const OUString &rPath
pEntry = m_pCertPathList->Next(pEntry);
}
- OUStringBuffer sEntry;
- sEntry.append('\t').append(rProfile).append('\t').append(rPath);
- pEntry = m_pCertPathList->InsertEntry(sEntry.makeStringAndClear());
+ OUString sEntry( "\t" + rProfile + "\t" + rPath );
+ pEntry = m_pCertPathList->InsertEntry(sEntry);
OUString* pCertPath = new OUString(rPath);
pEntry->SetUserData(pCertPath);
m_pCertPathList->SetCheckButtonState(pEntry, SvButtonState::Checked);
diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx
index 30e9d5e21ae7..8c0a638ec7b8 100644
--- a/cui/source/options/fontsubs.cxx
+++ b/cui/source/options/fontsubs.cxx
@@ -74,11 +74,10 @@ SvxFontSubstTabPage::SvxFontSubstTabPage( vcl::Window* pParent,
OUString sHeader1(get<FixedText>("always")->GetText());
OUString sHeader2(get<FixedText>("screenonly")->GetText());
- OUStringBuffer sHeader;
- sHeader.append(sHeader1).append("\t").append(sHeader2)
- .append("\t ").append(get<FixedText>("font")->GetText())
- .append("\t ").append(get<FixedText>("replacewith")->GetText());
- m_pCheckLB->InsertHeaderEntry(sHeader.makeStringAndClear());
+ OUString sHeader = sHeader1 + "\t" + sHeader2
+ + "\t " + get<FixedText>("font")->GetText()
+ + "\t " + get<FixedText>("replacewith")->GetText();
+ m_pCheckLB->InsertHeaderEntry(sHeader);
HeaderBar &rBar = m_pCheckLB->GetTheHeaderBar();
HeaderBarItemBits nBits = rBar.GetItemBits(1) | HeaderBarItemBits::FIXEDPOS | HeaderBarItemBits::FIXED;