diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-29 00:11:14 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-29 23:36:52 -0600 |
commit | b77bb8dd173f71d3148d8237e71a5dbc3340765f (patch) | |
tree | b2f65f46ea55d08673c1592fb8ce5b46022b4f63 /sw | |
parent | 84f313ba4a1815b5a26da64de6f6a3aac78aef3e (diff) |
coverity#100869-708452 : Uninitialized scalar field
Change-Id: I62fdff624360839ce16ed183c61c6dae73afebec
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/porfld.cxx | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/sw/source/core/text/porfld.cxx b/sw/source/core/text/porfld.cxx index c86b8a25bb66..b3fa0e8b9adb 100644 --- a/sw/source/core/text/porfld.cxx +++ b/sw/source/core/text/porfld.cxx @@ -74,26 +74,34 @@ void SwFldPortion::TakeNextOffset( const SwFldPortion* pFld ) } SwFldPortion::SwFldPortion( const OUString &rExpand, SwFont *pFont, bool bPlaceHold ) - : aExpand(rExpand), pFnt(pFont), nNextOffset(0), nNextScriptChg(COMPLETE_STRING), nViewWidth(0), - bFollow( sal_False ), bHasFollow( sal_False ), bPlaceHolder( bPlaceHold ) + : aExpand(rExpand), pFnt(pFont), nNextOffset(0), nNextScriptChg(COMPLETE_STRING), nViewWidth(0) + , bFollow( sal_False ), bLeft( sal_False), bHide( sal_False) + , bCenter (sal_False), bHasFollow( sal_False ) + , bAnimated( sal_False), bNoPaint( sal_False) + , bReplace( sal_False), bPlaceHolder( bPlaceHold ) , m_bNoLength( false ) + , m_nAttrFldType(0) { SetWhichPor( POR_FLD ); - m_nAttrFldType = 0; } SwFldPortion::SwFldPortion( const SwFldPortion& rFld ) - : SwExpandPortion( rFld ), - aExpand( rFld.GetExp() ), - nNextOffset( rFld.GetNextOffset() ), - nNextScriptChg( rFld.GetNextScriptChg() ), - bFollow( rFld.IsFollow() ), - bLeft( rFld.IsLeft() ), - bHide( rFld.IsHide() ), - bCenter( rFld.IsCenter() ), - bHasFollow( rFld.HasFollow() ), - bPlaceHolder( rFld.bPlaceHolder ) + : SwExpandPortion( rFld ) + , aExpand( rFld.GetExp() ) + , nNextOffset( rFld.GetNextOffset() ) + , nNextScriptChg( rFld.GetNextScriptChg() ) + , nViewWidth( rFld.nViewWidth ) + , bFollow( rFld.IsFollow() ) + , bLeft( rFld.IsLeft() ) + , bHide( rFld.IsHide() ) + , bCenter( rFld.IsCenter() ) + , bHasFollow( rFld.HasFollow() ) + , bAnimated ( rFld.bAnimated ) + , bNoPaint( rFld.bNoPaint) + , bReplace( rFld.bReplace ) + , bPlaceHolder( rFld.bPlaceHolder ) , m_bNoLength( rFld.m_bNoLength ) + , m_nAttrFldType( rFld.m_nAttrFldType) { if ( rFld.HasFont() ) pFnt = new SwFont( *rFld.GetFont() ); |