diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-06 18:43:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-06 19:22:37 +0000 |
commit | 3342a557e4009acde4416339798375d6954541f8 (patch) | |
tree | ac55ebfd7dd598efd9d364321938e4c94025deaa /editeng | |
parent | 1f9374af4f8ea343db0c239d2449893ac4efc675 (diff) |
coverity#1355252 Uninitialized pointer field
Change-Id: I34c5565adcfd3fd39f9b03967e5c4272767a58ea
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/outliner/outliner.cxx | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index e858c089fbbe..9cd2ebb1063f 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -1255,23 +1255,25 @@ bool Outliner::ImpCanDeleteSelectedPages( OutlinerView* pCurView ) return RemovingPagesHdl( pCurView ); } -Outliner::Outliner( SfxItemPool* pPool, sal_uInt16 nMode ) -: nMinDepth( -1 ) +Outliner::Outliner(SfxItemPool* pPool, sal_uInt16 nMode) + : pHdlParagraph(nullptr) + , mnFirstSelPage(0) + , nDepthChangedHdlPrevDepth(0) + , mnDepthChangeHdlPrevFlags(ParaFlag::NONE) + , nMaxDepth(9) + , nMinDepth(-1) + , nFirstPage(1) + , bIsExpanding(false) + , bFirstParaIsEmpty(true) + , nBlockInsCallback(0) + , bStrippingPortions(false) + , bPasting(false) { - bStrippingPortions = false; - bPasting = false; - - nFirstPage = 1; - nBlockInsCallback = 0; - - nMaxDepth = 9; - pParaList = new ParagraphList; pParaList->SetVisibleStateChangedHdl( LINK( this, Outliner, ParaVisibleStateChangedHdl ) ); Paragraph* pPara = new Paragraph( 0 ); pParaList->Append(pPara); - bFirstParaIsEmpty = true; pEditEngine = new OutlinerEditEng( this, pPool ); pEditEngine->SetBeginMovingParagraphsHdl( LINK( this, Outliner, BeginMovingParagraphsHdl ) ); |