[Libreoffice-commits] core.git: cui/source

Arnold Dumas arnold at dumas.at
Sun Jul 3 15:49:26 UTC 2016


 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 <arnold at 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 <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at 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;


More information about the Libreoffice-commits mailing list