diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-03-08 23:31:11 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-03-09 19:19:04 +0100 |
commit | 3ba85b7786663da4f2de1a3c2fe7ee9a27657293 (patch) | |
tree | 31052009f6f30e919d7220b07d8b2bc84074e327 /comphelper | |
parent | 959b30841ae9c5cc1f43928f5e7780abaab4a087 (diff) |
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.cxx | 2 |
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; |