From ba65bc29c3df7d9d4ab679b991a0f850ae8631d8 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Tue, 22 Apr 2014 08:16:44 +0200 Subject: Use SAL_N_ELEMENTS to get size of array Change-Id: Ie99839d3932ad860af19faae8941740e55641b8b --- sw/source/filter/xml/xmlfonte.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') 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 ); -- cgit