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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jan 10 07:50:53 UTC 2019


 basic/source/comp/exprtree.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit f0f462bfa5465aa978c82e6c4aad058d9b760e93
Author:     Doğa Deniz Arıcı <bluegreenbrain at gmail.com>
AuthorDate: Mon Dec 31 01:24:52 2018 +0300
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Jan 10 08:50:31 2019 +0100

    tdf#112689: Replace chained O(U)StringBuffer::append() with operator+
    
    Change-Id: Ieb5c1e13ae647b49fd563f1759d744bd5f008ce1
    Reviewed-on: https://gerrit.libreoffice.org/65758
    Tested-by: Jenkins
    Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx
index 20d0691cd0c9..ed7f49e1b4e0 100644
--- a/basic/source/comp/exprtree.cxx
+++ b/basic/source/comp/exprtree.cxx
@@ -140,9 +140,8 @@ static SbiSymDef* AddSym ( SbiToken eTok, SbiSymPool& rPool, SbiExprType eCurExp
             // generate dummy parameters
             for( sal_Int32 n = 1; n <= pPar->GetSize(); n++ )
             {
-                OUStringBuffer aPar("PAR");
-                aPar.append(n);
-                pProc->GetParams().AddSym( aPar.makeStringAndClear() );
+                OUString aPar = "PAR" + OUString::number( n );
+                pProc->GetParams().AddSym( aPar );
             }
         }
     }


More information about the Libreoffice-commits mailing list