vcl/source/font/PhysicalFontFamily.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 8f7294223a654e0ca13f94cbc906e5c333e28308
Author:     Manish <mbera.de...@gmail.com>
AuthorDate: Mon Dec 9 19:27:48 2024 +0530
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Mon Dec 9 19:34:58 2024 +0100

    tdf#145538: Use range based for loops
    
    Change-Id: I8b41b96775fdd26464122e47ec853b48bdd921d3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178150
    Reviewed-by: Skyler Grey <skyler.g...@collabora.com>
    Tested-by: Jenkins

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)) )

Reply via email to