From 8f7294223a654e0ca13f94cbc906e5c333e28308 Mon Sep 17 00:00:00 2001 From: Manish Date: Mon, 9 Dec 2024 19:27:48 +0530 Subject: [PATCH] tdf#145538: Use range based for loops Change-Id: I8b41b96775fdd26464122e47ec853b48bdd921d3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178150 Reviewed-by: Skyler Grey Tested-by: Jenkins --- vcl/source/font/PhysicalFontFamily.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vcl/source/font/PhysicalFontFamily.cxx b/vcl/source/font/PhysicalFontFamily.cxx index 6956394a5912..e786c4be963e 100644 --- a/vcl/source/font/PhysicalFontFamily.cxx +++ b/vcl/source/font/PhysicalFontFamily.cxx @@ -63,9 +63,8 @@ static ImplFontAttrs lcl_IsCJKFont( std::u16string_view rFontName ) { // Test, if Fontname includes CJK characters --> In this case we // mention that it is a CJK font - for(size_t i = 0; i < rFontName.size(); i++) + for (const sal_Unicode& ch : rFontName) { - const sal_Unicode ch = rFontName[i]; // japanese if ( ((ch >= 0x3040) && (ch <= 0x30FF)) || ((ch >= 0x3190) && (ch <= 0x319F)) )