diff options
author | Steven Guo <steventimothyguo@gmail.com> | 2016-03-02 03:17:03 -0800 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-03 07:04:31 +0000 |
commit | 74c93c91ebce735e0defacc30054ca809c2db02d (patch) | |
tree | f10269abf6f580d2f149e40145ac748d33adf99f /sc | |
parent | d298cfd9864d5a742f966fa6584b34f3b72cd6a0 (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/dbgui/PivotLayoutTreeListData.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx b/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx index 9bee06659614..32b069177a1c 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 |