diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-08 10:21:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-08 12:18:52 +0100 |
commit | 290f7986a9030eaf1078ce65da5d78f834b0e3ba (patch) | |
tree | 291e3ae1ca0f9fca5412464f6066ae9df3e35847 /sw | |
parent | 5e5ce3767f45a2df39b02c0be34cc4466d87d2e6 (diff) |
coverity#738883 Uninitialized scalar field
Change-Id: Ica1335690e9204a5e9b445ad9583da739dce5bff
and coverity#738882 Uninitialized scalar field
Change-Id: Ief58f36c70e16eabe8b4e3ccbc82fc9ca3309d94
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/crsrsh.cxx | 50 |
1 files changed, 38 insertions, 12 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index a9faaadb03f1..e71b044ca8c6 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -2581,12 +2581,25 @@ void SwCrsrShell::ParkCrsr( const SwNodeIndex &rIdx ) All views of a document are in the ring of the shell. */ SwCrsrShell::SwCrsrShell( SwCrsrShell& rShell, Window *pInitWin ) - : SwViewShell( rShell, pInitWin ), - SwModify( 0 ), m_pCrsrStk( 0 ), m_pBlockCrsr( 0 ), m_pTblCrsr( 0 ), - m_pBoxIdx( 0 ), m_pBoxPtr( 0 ), m_nCrsrMove( 0 ), m_nBasicActionCnt( 0 ), - m_eMvState( MV_NONE ), - m_sMarkedListId(), - m_nMarkedListLevel( 0 ), m_oldColFrm(0) + : SwViewShell( rShell, pInitWin ) + , SwModify( 0 ) + , m_pCrsrStk( 0 ) + , m_pBlockCrsr( 0 ) + , m_pTblCrsr( 0 ) + , m_pBoxIdx( 0 ) + , m_pBoxPtr( 0 ) + , m_nUpDownX(0) + , m_nLeftFrmPos(0) + , m_nAktNode(0) + , m_nAktCntnt(0) + , m_nAktNdTyp(0) + , m_bAktSelection(false) + , m_nCrsrMove( 0 ) + , m_nBasicActionCnt( 0 ) + , m_eMvState( MV_NONE ) + , m_sMarkedListId() + , m_nMarkedListLevel( 0 ) + , m_oldColFrm(0) { SET_CURR_SHELL( this ); // only keep the position of the current cursor of the copy shell @@ -2610,12 +2623,25 @@ SwCrsrShell::SwCrsrShell( SwCrsrShell& rShell, Window *pInitWin ) /// default constructor SwCrsrShell::SwCrsrShell( SwDoc& rDoc, Window *pInitWin, const SwViewOption *pInitOpt ) - : SwViewShell( rDoc, pInitWin, pInitOpt ), - SwModify( 0 ), m_pCrsrStk( 0 ), m_pBlockCrsr( 0 ), m_pTblCrsr( 0 ), - m_pBoxIdx( 0 ), m_pBoxPtr( 0 ), m_nCrsrMove( 0 ), m_nBasicActionCnt( 0 ), - m_eMvState( MV_NONE ), // state for crsr-travelling - GetCrsrOfst - m_sMarkedListId(), - m_nMarkedListLevel( 0 ), m_oldColFrm(0) + : SwViewShell( rDoc, pInitWin, pInitOpt ) + , SwModify( 0 ) + , m_pCrsrStk( 0 ) + , m_pBlockCrsr( 0 ) + , m_pTblCrsr( 0 ) + , m_pBoxIdx( 0 ) + , m_pBoxPtr( 0 ) + , m_nUpDownX(0) + , m_nLeftFrmPos(0) + , m_nAktNode(0) + , m_nAktCntnt(0) + , m_nAktNdTyp(0) + , m_bAktSelection(false) + , m_nCrsrMove( 0 ) + , m_nBasicActionCnt( 0 ) + , m_eMvState( MV_NONE ) // state for crsr-travelling - GetCrsrOfst + , m_sMarkedListId() + , m_nMarkedListLevel( 0 ) + , m_oldColFrm(0) { SET_CURR_SHELL( this ); // create initial cursor and set it to first content position |