summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-13 12:51:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-13 16:47:32 +0000
commit13d3ae64dbf2ac4bda8e831c1da890b09024a8bb (patch)
tree5097d7b6d54186490452a62adc3e84634a0d8d4e /i18npool
parent25ae332bbafd0cb416a6a5c0db467e501661c679 (diff)
make more use of OUStringBuffer::append(OUStringConcat)
where we can avoid constructing temporary OUStrings Change-Id: I0eacd68a8d1b450894c2ea769055f16886b78ad0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148780 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
index 7d807a31ac8d..68e0fe2bb704 100644
--- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
+++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
@@ -452,7 +452,7 @@ void lcl_formatPersianWord( sal_Int32 nNumber, OUString& rsResult )
{
if (nSection > SAL_N_ELEMENTS( table_PersianWord_decadeX))
throw IllegalArgumentException(); // does not happen with sal_Int32
- aTemp.insert( 0, asPersianWord_conjunction).insert( 0, table_PersianWord_decadeX[nSection-1]);
+ aTemp.insert( 0, table_PersianWord_decadeX[nSection-1] + asPersianWord_conjunction );
}
unsigned int nDigit;