cui/source/options/certpath.cxx | 5 ++--- cui/source/options/fontsubs.cxx | 9 ++++----- 2 files changed, 6 insertions(+), 8 deletions(-)
New commits: commit 68900bad945c847f62a614cd2c2653ef3a9827ca Author: Arnold Dumas <arn...@dumas.at> Date: Sun Jul 3 11:14:12 2016 +0200 tdf#57950: Replace chained OUStringBuffer::append() with operator+ Change-Id: I5e6cb493a5e742232cd312014d4b5b2820cf8314 Reviewed-on: https://gerrit.libreoffice.org/26878 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> diff --git a/cui/source/options/certpath.cxx b/cui/source/options/certpath.cxx index d87807c..cc0955f 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 30e9d5e..8c0a638 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits