Kaydet (Commit) 731174ae authored tarafından Caolán McNamara's avatar Caolán McNamara

CID#1079275 uninitialized member variables

also CID#1079276

Change-Id: Ib8e5f56f6f970a4eaae334eff2f670b20b13ad2d
üst cd910534
...@@ -57,7 +57,11 @@ void SwXMLTextBlocks::ResetBlockMode ( ) ...@@ -57,7 +57,11 @@ void SwXMLTextBlocks::ResetBlockMode ( )
} }
SwXMLTextBlocks::SwXMLTextBlocks( const OUString& rFile ) SwXMLTextBlocks::SwXMLTextBlocks( const OUString& rFile )
: SwImpBlocks( rFile ), bAutocorrBlock( sal_False ), nFlags ( 0 ) : SwImpBlocks(rFile)
, bAutocorrBlock(false)
, bBlock(false)
, nFlags(0)
, nCurBlk(0)
{ {
SwDocShell* pDocSh = new SwDocShell ( SFX_CREATE_MODE_INTERNAL ); SwDocShell* pDocSh = new SwDocShell ( SFX_CREATE_MODE_INTERNAL );
if( !pDocSh->DoInitNew( 0 ) ) if( !pDocSh->DoInitNew( 0 ) )
...@@ -98,9 +102,11 @@ SwXMLTextBlocks::SwXMLTextBlocks( const OUString& rFile ) ...@@ -98,9 +102,11 @@ SwXMLTextBlocks::SwXMLTextBlocks( const OUString& rFile )
} }
SwXMLTextBlocks::SwXMLTextBlocks( const uno::Reference < embed::XStorage >& rStg, const OUString& rName ) SwXMLTextBlocks::SwXMLTextBlocks( const uno::Reference < embed::XStorage >& rStg, const OUString& rName )
: SwImpBlocks( rName ) : SwImpBlocks( rName )
, bAutocorrBlock( sal_True ) , bAutocorrBlock(false)
, nFlags ( 0 ) , bBlock(false)
, nFlags(0)
, nCurBlk(0)
{ {
SwDocShell* pDocSh = new SwDocShell ( SFX_CREATE_MODE_INTERNAL ); SwDocShell* pDocSh = new SwDocShell ( SFX_CREATE_MODE_INTERNAL );
if( !pDocSh->DoInitNew( 0 ) ) if( !pDocSh->DoInitNew( 0 ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment