diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-21 14:18:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-21 15:30:25 +0000 |
commit | b9cb27effd2f0d137af8e5fe59f6aaf489c10418 (patch) | |
tree | 3b0101986b79f0306e7ab47741f95e9dfa217b17 /sw | |
parent | coverity#706146 Copy into fixed size buffer (diff) | |
download | core-b9cb27effd2f0d137af8e5fe59f6aaf489c10418.tar.gz core-b9cb27effd2f0d137af8e5fe59f6aaf489c10418.zip |
coverity#1158515 Unused pointer value
Change-Id: I3c5be18ccd0f79079ed91f0793955b1ebab72586
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docedt.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx index 4e1f4e9c766d..584b51fc0b31 100644 --- a/sw/source/core/doc/docedt.cxx +++ b/sw/source/core/doc/docedt.cxx @@ -642,7 +642,8 @@ _SaveRedlEndPosForRestore::_SaveRedlEndPosForRestore( const SwNodeIndex& rInsIdx sal_uInt16 nFndPos; const SwPosition* pEnd; SwPosition aSrcPos( rInsIdx, SwIndex( rNd.GetCntntNode(), nCnt )); - const SwRangeRedline* pRedl = pDest->GetRedline( aSrcPos, &nFndPos ); + pDest->GetRedline( aSrcPos, &nFndPos ); + const SwRangeRedline* pRedl; while( nFndPos-- && *( pEnd = ( pRedl = pDest->GetRedlineTbl()[ nFndPos ] )->End() ) == aSrcPos && *pRedl->Start() < aSrcPos ) |