diff options
author | Kayo Hamid <revol.code@yahoo.com> | 2010-10-09 13:49:07 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-09 13:49:07 -0500 |
commit | a7be30202460cd143cb3815cf31c71ea4b374843 (patch) | |
tree | 001c226e2d014fc66d67fb725032227b98534d71 /sw/source/core/doc/fmtcol.cxx | |
parent | 66a65ad0cfb7f0fbcd89342dcce8e07ecf515828 (diff) |
Use SAL_N_ELEMENTS macro
Diffstat (limited to 'sw/source/core/doc/fmtcol.cxx')
-rw-r--r-- | sw/source/core/doc/fmtcol.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx index d87d2d58d0f6..54c63485404e 100644 --- a/sw/source/core/doc/fmtcol.cxx +++ b/sw/source/core/doc/fmtcol.cxx @@ -316,7 +316,7 @@ void SwTxtFmtColl::Modify( SfxPoolItem* pOld, SfxPoolItem* pNew ) } - for( int nC = 0, nArrLen = sizeof(aFontSizeArr) / sizeof( aFontSizeArr[0]); + for( int nC = 0, nArrLen = SAL_N_ELEMENTS(aFontSizeArr); nC < nArrLen; ++nC ) { SvxFontHeightItem *pFSize = aFontSizeArr[ nC ], *pOldFSize; |