From 3ba85b7786663da4f2de1a3c2fe7ee9a27657293 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 8 Mar 2024 23:31:11 +0100 Subject: 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 --- comphelper/source/misc/string.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comphelper') 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(str.size()); ) + for( std::size_t i = 0; i < str.size(); ) { sal_uInt32 c = o3tl::iterateCodePoints(str, &i); sal_uInt32 value = 0; -- cgit