summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-04-12 10:23:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-04-12 11:50:35 +0200
commit6400c23d6a37617f92dbe4f514c0691e4e50fa05 (patch)
treed93c57078a20c1a9b34e6ecaa7bae4f068a63dae /i18npool
parent5453721050f1cad2951410cc8d5ebca19ea38294 (diff)
Pick better type for a variable
Change-Id: I30916b188c7f8de06aec0719e79aa134a3250aef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132890 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/nativenumber/nativenumbersupplier.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx
index 0f5c74f8bd56..01f2382713db 100644
--- a/i18npool/source/nativenumber/nativenumbersupplier.cxx
+++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx
@@ -27,6 +27,7 @@
#include <comphelper/processfactory.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <o3tl/string_view.hxx>
+#include <cstddef>
#include <map>
#include <mutex>
#include <memory>
@@ -669,7 +670,7 @@ OUString NativeNumberSupplierService::getNativeNumberString(const OUString& aNum
{ std::u16string_view(u"title"), TITLE }
};
- sal_Int32 nStripCase = 0;
+ std::size_t nStripCase = 0;
size_t nCasing;
for (nCasing = 0; nCasing < SAL_N_ELEMENTS(Casings); ++nCasing)
{
@@ -680,7 +681,7 @@ OUString NativeNumberSupplierService::getNativeNumberString(const OUString& aNum
}
}
- if (nStripCase > 0 && (static_cast<sal_Int32>(rNativeNumberParams.size()) == nStripCase ||
+ if (nStripCase > 0 && (rNativeNumberParams.size() == nStripCase ||
rNativeNumberParams[nStripCase++] == ' '))
{
OUString aStr = getNumberText(rLocale, aNumberString, rNativeNumberParams.substr(nStripCase));