diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-06-22 12:53:04 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-06-24 21:45:42 +0000 |
commit | 126827b0fdc2277d728d57d4fe68b446fa2f7a08 (patch) | |
tree | 47ecea0bb21a5d7619ef6c8870ab276586804194 /i18npool/source/defaultnumberingprovider | |
parent | 51daa4de4fbb86903aeb9cdfefbb089e8d00c001 (diff) |
fdo#43460 framework,i18npool,accessibility: use isEmpty()
Change-Id: I4cd9841127b1d4a294d7f001b646259c61eb1172
Reviewed-on: https://gerrit.libreoffice.org/4443
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'i18npool/source/defaultnumberingprovider')
-rw-r--r-- | i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx index 4e962c8edccd..d8b85cc14b16 100644 --- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx +++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx @@ -411,7 +411,7 @@ void lcl_formatPersianWord( sal_Int32 nNumber, OUString& rsResult ) if ((nDigit = nPart % 100) < 20) { - if (aTemp.getLength()) + if (!aTemp.isEmpty()) aTemp.insert( 0, sal_Unicode(0x0020)); aTemp.insert( 0, table_PersianWord_decade1[nDigit]); } @@ -419,13 +419,13 @@ void lcl_formatPersianWord( sal_Int32 nNumber, OUString& rsResult ) { if ((nDigit = nPart % 10) != 0) { - if (aTemp.getLength()) + if (!aTemp.isEmpty()) aTemp.insert( 0, asPersianWord_conjunction); aTemp.insert( 0, table_PersianWord_decade1[nDigit]); } if ((nDigit = (nPart / 10) % 10) != 0) { - if (aTemp.getLength()) + if (!aTemp.isEmpty()) aTemp.insert( 0, asPersianWord_conjunction); aTemp.insert( 0, table_PersianWord_decade2[nDigit-2]); } @@ -433,7 +433,7 @@ void lcl_formatPersianWord( sal_Int32 nNumber, OUString& rsResult ) if ((nDigit = nPart / 100) != 0) { - if (aTemp.getLength()) + if (!aTemp.isEmpty()) aTemp.insert( 0, asPersianWord_conjunction); aTemp.insert( 0, table_PersianWord_decade3[nDigit-1]); } |