Kaydet (Commit) ba65bc29 authored tarafından Matteo Casalin's avatar Matteo Casalin

Use SAL_N_ELEMENTS to get size of array

Change-Id: Ie99839d3932ad860af19faae8941740e55641b8b
üst 280615d1
...@@ -45,9 +45,9 @@ SwXMLFontAutoStylePool_Impl::SwXMLFontAutoStylePool_Impl( ...@@ -45,9 +45,9 @@ SwXMLFontAutoStylePool_Impl::SwXMLFontAutoStylePool_Impl(
const SfxItemPool& rPool = _rExport.getDoc()->GetAttrPool(); const SfxItemPool& rPool = _rExport.getDoc()->GetAttrPool();
const SfxPoolItem* pItem; 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& rFont =
(const SvxFontItem&)rPool.GetDefaultItem( nWhichId ); (const SvxFontItem&)rPool.GetDefaultItem( nWhichId );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment