diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 11:40:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:45 +0000 |
commit | 1d687e81769a42540b1fe4206dd58a2d3236f47e (patch) | |
tree | b8e380ec2308ac77937470d93bab0400a88ea606 | |
parent | 0934ed1a40c59c169354b177d7dab4228de66171 (diff) |
coverity#708424 Uninitialized scalar field
Change-Id: I96d4c457f8eb64de7d2009b6d6b78fda4a15a4d8
-rw-r--r-- | sw/source/core/layout/frmtool.cxx | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index 352dadd3c937..7145ef760b24 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -1817,18 +1817,29 @@ void MakeFrms( SwDoc *pDoc, const SwNodeIndex &rSttIdx, bObjsDirect = true; } -SwBorderAttrs::SwBorderAttrs( const SwModify *pMod, const SwFrm *pConstructor ) : - SwCacheObj( pMod ), - rAttrSet( pConstructor->IsCntntFrm() +SwBorderAttrs::SwBorderAttrs(const SwModify *pMod, const SwFrm *pConstructor) + : SwCacheObj(pMod) + , rAttrSet(pConstructor->IsCntntFrm() ? static_cast<const SwCntntFrm*>(pConstructor)->GetNode()->GetSwAttrSet() - : static_cast<const SwLayoutFrm*>(pConstructor)->GetFmt()->GetAttrSet() ), - rUL ( rAttrSet.GetULSpace() ), + : static_cast<const SwLayoutFrm*>(pConstructor)->GetFmt()->GetAttrSet()) + , rUL(rAttrSet.GetULSpace()) // #i96772# // LRSpaceItem is copied due to the possibility that it is adjusted - see below - rLR ( rAttrSet.GetLRSpace() ), - rBox ( rAttrSet.GetBox() ), - rShadow ( rAttrSet.GetShadow() ), - aFrmSize( rAttrSet.GetFrmSize().GetSize() ) + , rLR(rAttrSet.GetLRSpace()) + , rBox(rAttrSet.GetBox()) + , rShadow(rAttrSet.GetShadow()) + , aFrmSize(rAttrSet.GetFrmSize().GetSize()) + , bIsLine(false) + , bJoinedWithPrev(false) + , bJoinedWithNext(false) + , nTopLine(0) + , nBottomLine(0) + , nLeftLine(0) + , nRightLine(0) + , nTop(0) + , nBottom(0) + , nGetTopLine(0) + , nGetBottomLine(0) { // #i96772# const SwTxtFrm* pTxtFrm = dynamic_cast<const SwTxtFrm*>(pConstructor); |