summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-11-08 12:39:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-11-08 17:18:30 +0000
commitaa92403a2b8336c5317f0fc95fac23fb7e540c89 (patch)
tree16aecc8c7d22cea33b3ee6315f31fee233c8cdba /sw
parentea4fd6d5ca9fb8757cf1cba9c2f419947d87e8fb (diff)
longparas: disentangle same variable used over two different loops
Change-Id: I22bbd777cb86decbbf714f71ff0477053ae3b757
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/wrtw8nds.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx
index ed8064355a13..3df10ff6529d 100644
--- a/sw/source/filter/ww8/wrtw8nds.cxx
+++ b/sw/source/filter/ww8/wrtw8nds.cxx
@@ -268,13 +268,13 @@ xub_StrLen SwWW8AttrIter::SearchNext( xub_StrLen nStartPos )
if ( nCurRedlinePos < m_rExport.pDoc->GetRedlineTbl().size() )
{
// nCurRedlinePos point to the next redline
- nPos = nCurRedlinePos;
+ sal_uInt16 nRedLinePos = nCurRedlinePos;
if( pCurRedline )
- ++nPos;
+ ++nRedLinePos;
- for ( ; nPos < m_rExport.pDoc->GetRedlineTbl().size(); ++nPos )
+ for ( ; nRedLinePos < m_rExport.pDoc->GetRedlineTbl().size(); ++nRedLinePos )
{
- const SwRedline* pRedl = m_rExport.pDoc->GetRedlineTbl()[ nPos ];
+ const SwRedline* pRedl = m_rExport.pDoc->GetRedlineTbl()[ nRedLinePos ];
const SwPosition* pStt = pRedl->Start();
const SwPosition* pEnd = pStt == pRedl->GetPoint()