diff options
-rw-r--r-- | sw/source/core/doc/fmtcol.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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!) |