sw/source/core/doc/fmtcol.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e4271c596d33b2e864e86517a15694967f05fa33
Author:     Simon Chenery <simon_chen...@yahoo.com>
AuthorDate: Mon Jan 13 20:42:28 2025 +0100
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Thu Jan 23 08:17:16 2025 +0100

    tdf#147021 avoid use of SAL_N_ELEMENTS macro in fmtcol.cxx
    
    Change-Id: I78d040fcf26766d33b86ae454b31c2278b3f7584
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180207
    Tested-by: Jenkins
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx
index 3f3fe2a037eb..c8f64ffffeec 100644
--- a/sw/source/core/doc/fmtcol.cxx
+++ b/sw/source/core/doc/fmtcol.cxx
@@ -339,9 +339,9 @@ void SwTextFormatColl::SwClientNotify(const SwModify& 
rModify, const SfxHint& rH
         ++nNoNotify;
     }
 
-    for (size_t nC = 0; nC < SAL_N_ELEMENTS(aFontSizeArr); ++nC)
+    for (const SvxFontHeightItem *pFSize : aFontSizeArr)
     {
-        const SvxFontHeightItem *pFSize = aFontSizeArr[ nC ], *pOldFSize;
+        const SvxFontHeightItem *pOldFSize;
         if( pFSize && (SfxItemState::SET == GetItemState(
             pFSize->Which(), false, reinterpret_cast<const 
SfxPoolItem**>(&pOldFSize) )) &&
             // Avoid recursion (SetAttr!)

Reply via email to