From 290f7986a9030eaf1078ce65da5d78f834b0e3ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 8 Apr 2014 10:21:54 +0100 Subject: [PATCH] coverity#738883 Uninitialized scalar field Change-Id: Ica1335690e9204a5e9b445ad9583da739dce5bff and coverity#738882 Uninitialized scalar field Change-Id: Ief58f36c70e16eabe8b4e3ccbc82fc9ca3309d94 --- sw/source/core/crsr/crsrsh.cxx | 50 ++++++++++++++++++++++++++-------- 1 file 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