summaryrefslogtreecommitdiff
path: root/sw/source/core/undo/unmove.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-08 10:16:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-08 12:18:52 +0100
commit5e5ce3767f45a2df39b02c0be34cc4466d87d2e6 (patch)
treed14556b4c5618c8051fc1860e18b323709fa1c9d /sw/source/core/undo/unmove.cxx
parent0c0c84d78a72a1a691ad59fbefb44b696ac12819 (diff)
coverity#738888 Uninitialized scalar field
Change-Id: Ifbc4db935e912907a5fc3988b1910db506040cdc
Diffstat (limited to 'sw/source/core/undo/unmove.cxx')
-rw-r--r--sw/source/core/undo/unmove.cxx20
1 files changed, 14 insertions, 6 deletions
diff --git a/sw/source/core/undo/unmove.cxx b/sw/source/core/undo/unmove.cxx
index 45ad54cd232a..6dc4a057664d 100644
--- a/sw/source/core/undo/unmove.cxx
+++ b/sw/source/core/undo/unmove.cxx
@@ -28,13 +28,21 @@
// MOVE
SwUndoMove::SwUndoMove( const SwPaM& rRange, const SwPosition& rMvPos )
- : SwUndo( UNDO_MOVE ), SwUndRng( rRange ),
- nMvDestNode( rMvPos.nNode.GetIndex() ),
- nMvDestCntnt( rMvPos.nContent.GetIndex() ),
- bMoveRedlines( false )
+ : SwUndo( UNDO_MOVE )
+ , SwUndRng( rRange )
+ , nDestSttNode(0)
+ , nDestEndNode(0)
+ , nInsPosNode(0)
+ , nMvDestNode(rMvPos.nNode.GetIndex())
+ , nDestSttCntnt(0)
+ , nDestEndCntnt(0)
+ , nInsPosCntnt(0)
+ , nMvDestCntnt(rMvPos.nContent.GetIndex())
+ , bJoinNext(false)
+ , bJoinPrev(false)
+ , bMoveRange(false)
+ , bMoveRedlines(false)
{
- bMoveRange = bJoinNext = bJoinPrev = sal_False;
-
// get StartNode from footnotes before delete!
SwDoc* pDoc = rRange.GetDoc();
SwTxtNode* pTxtNd = pDoc->GetNodes()[ nSttNode ]->GetTxtNode();