diff options
author | Doğa Deniz Arıcı <bluegreenbrain@gmail.com> | 2018-12-31 01:24:52 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-10 08:50:31 +0100 |
commit | f0f462bfa5465aa978c82e6c4aad058d9b760e93 (patch) | |
tree | 39df4c0af42a1a419c1d6b9475b4a5dfd4ab7379 /basic | |
parent | a3f409262db9a9939d40e8f009f3e2396c78c020 (diff) |
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@collabora.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/exprtree.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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 ); } } } |