summaryrefslogtreecommitdiffstats
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-03-08 23:31:11 +0100
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-03-09 19:19:04 +0100
commit3ba85b7786663da4f2de1a3c2fe7ee9a27657293 (patch)
tree31052009f6f30e919d7220b07d8b2bc84074e327 /comphelper
parenttdf#158773 avoid some OUString construction (diff)
downloadcore-3ba85b7786663da4f2de1a3c2fe7ee9a27657293.tar.gz
core-3ba85b7786663da4f2de1a3c2fe7ee9a27657293.zip
Support o3tl::iterateCodePoints with both sal_Int32 and std::size_t
...and clean up the most gross casting offenses Change-Id: If0d646fb3e73e71a9a2735569395034973563a1f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164602 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/string.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/string.cxx b/comphelper/source/misc/string.cxx
index 1b9137e473c0..446e500e0250 100644
--- a/comphelper/source/misc/string.cxx
+++ b/comphelper/source/misc/string.cxx
@@ -266,7 +266,7 @@ sal_Int32 getTokenCount(std::u16string_view rIn, sal_Unicode cTok)
sal_uInt32 decimalStringToNumber(std::u16string_view str)
{
sal_uInt32 result = 0;
- for( sal_Int32 i = 0; i < static_cast<sal_Int32>(str.size()); )
+ for( std::size_t i = 0; i < str.size(); )
{
sal_uInt32 c = o3tl::iterateCodePoints(str, &i);
sal_uInt32 value = 0;