From 9497b37373dee60485aa3ae8983b8b4d32f936b0 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Fri, 22 Nov 2013 23:37:59 +0100 Subject: Reduce scope Change-Id: Ic04a48c1a1230824b9676a6d7615b2eb39608985 --- sw/source/filter/ww8/wrtw8esh.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sw') diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx index 10b97cc05341..ad7595919811 100644 --- a/sw/source/filter/ww8/wrtw8esh.cxx +++ b/sw/source/filter/ww8/wrtw8esh.cxx @@ -1185,12 +1185,11 @@ void MSWord_SdrAttrIter::OutAttr( sal_Int32 nSwPos ) const SfxItemPool& rDstPool = m_rExport.pDoc->GetAttrPool(); nTmpSwPos = nSwPos; - sal_uInt16 nWhich, nSlotId; for(std::vector::const_iterator i = aTxtAtrArr.begin(); i < aTxtAtrArr.end(); ++i) { if (nSwPos >= i->nStart && nSwPos < i->nEnd) { - nWhich = i->pAttr->Which(); + sal_uInt16 nWhich = i->pAttr->Which(); if (nWhich == EE_FEATURE_FIELD) { OutEEField(*(i->pAttr)); @@ -1201,8 +1200,8 @@ void MSWord_SdrAttrIter::OutAttr( sal_Int32 nSwPos ) m_rExport.WriteChar(0x9); continue; } - nSlotId = pSrcPool->GetSlotId(nWhich); + const sal_uInt16 nSlotId = pSrcPool->GetSlotId(nWhich); if (nSlotId && nWhich != nSlotId) { nWhich = rDstPool.GetWhich(nSlotId); -- cgit