sc/source/ui/dbgui/PivotLayoutTreeListData.cxx |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

New commits:
commit 74c93c91ebce735e0defacc30054ca809c2db02d
Author: Steven Guo <steventimothy...@gmail.com>
Date:   Wed Mar 2 03:17:03 2016 -0800

    tdf#57950 Replace chained O(U)StringBuffer::append() with operator+
    
    Replace chained O(U)StringBuffer::append() in PivotLayoutTreeListData.cxx
    
    Change-Id: Ia1cc2f32e038bca2421cc5e9aca3b4f15d7c8432
    Reviewed-on: https://gerrit.libreoffice.org/22828
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Noel Grandin <noelgran...@gmail.com>

diff --git a/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx 
b/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx
index 9bee066..32b0691 100644
--- a/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx
+++ b/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx
@@ -49,17 +49,12 @@ OUString lclGetFunctionMaskName(const sal_uInt16 
nFunctionMask)
 
 OUString lclCreateDataItemName(const sal_uInt16 nFunctionMask, const OUString& 
rName, const sal_uInt8 nDuplicationCount)
 {
-    OUStringBuffer aBuffer;
-    aBuffer.append(lclGetFunctionMaskName(nFunctionMask));
-    aBuffer.append(" - ");
-    aBuffer.append(rName);
+    OUString aBuffer = lclGetFunctionMaskName(nFunctionMask) + " - " + rName;
     if(nDuplicationCount > 0)
     {
-        aBuffer.append(" ");
-        aBuffer.append(OUString::number(nDuplicationCount));
+        aBuffer += " " + OUString::number(nDuplicationCount);
     }
-
-    return aBuffer.makeStringAndClear();
+    return aBuffer;
 }
 
 } // anonymous namespace
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to