xmloff/source/style/prstylecond.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 02eac74063dba2881ae7d5c676d96730ac0c135a
Author:     Simon Chenery <[email protected]>
AuthorDate: Sat Jun 21 16:21:11 2025 +0200
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Mon Jun 23 17:10:28 2025 +0200

    tdf#145538: Use range based for loop in prstylecond.cxx
    
    Change-Id: Id97859d6923e02ea16ac860dff2081809870b04b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186783
    Tested-by: Jenkins
    Reviewed-by: Ilmari Lauhakangas <[email protected]>

diff --git a/xmloff/source/style/prstylecond.cxx 
b/xmloff/source/style/prstylecond.cxx
index a7ab66f8352d..505d28e4c8e0 100644
--- a/xmloff/source/style/prstylecond.cxx
+++ b/xmloff/source/style/prstylecond.cxx
@@ -70,16 +70,16 @@ const ConditionMap g_ConditionMap[] =
 
 OUString GetParaStyleCondExternal( std::u16string_view internal)
 {
-    for (size_t i = 0; i < SAL_N_ELEMENTS(g_ConditionMap); ++i)
+    for (const auto& rCondition : g_ConditionMap)
     {
-        if (o3tl::equalsAscii(internal, g_ConditionMap[i].aInternal ))
+        if (o3tl::equalsAscii(internal, rCondition.aInternal ))
         {
-            OUString aResult = GetXMLToken( g_ConditionMap[i].nExternal ) +
+            OUString aResult = GetXMLToken( rCondition.nExternal ) +
                     "()";
-            if (g_ConditionMap[i].aValue != -1)
+            if (rCondition.aValue != -1)
             {
                 aResult += "=" +
-                    OUString::number( g_ConditionMap[i].aValue );
+                    OUString::number( rCondition.aValue );
             }
             return aResult;
         }

Reply via email to