diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-22 08:16:44 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-27 14:00:45 +0200 |
commit | ba65bc29c3df7d9d4ab679b991a0f850ae8631d8 (patch) | |
tree | 8ecb325d1567e4bb67dd23f08cbce2306586e738 /sw | |
parent | 280615d18153b70aefa894c35b09880ffa2516a4 (diff) |
Use SAL_N_ELEMENTS to get size of array
Change-Id: Ie99839d3932ad860af19faae8941740e55641b8b
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/xml/xmlfonte.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/xml/xmlfonte.cxx b/sw/source/filter/xml/xmlfonte.cxx index 78b614d08384..76811a12db3c 100644 --- a/sw/source/filter/xml/xmlfonte.cxx +++ b/sw/source/filter/xml/xmlfonte.cxx @@ -45,9 +45,9 @@ SwXMLFontAutoStylePool_Impl::SwXMLFontAutoStylePool_Impl( const SfxItemPool& rPool = _rExport.getDoc()->GetAttrPool(); const SfxPoolItem* pItem; - for( sal_uInt16 i=0; i<3; i++ ) + for( size_t i=0; i < SAL_N_ELEMENTS(aWhichIds); ++i ) { - sal_uInt16 nWhichId = aWhichIds[i]; + const sal_uInt16 nWhichId = aWhichIds[i]; const SvxFontItem& rFont = (const SvxFontItem&)rPool.GetDefaultItem( nWhichId ); |