summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-08 16:11:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-08 16:11:36 +0100
commit731174ae31f854ddfd6ba11110f8746e74b4e9da (patch)
tree94087f5d23c656d5164dfe8f81f9b2fdae96180c
parentcd910534d884921b9ca179eff00248c6b16f9a4f (diff)
CID#1079275 uninitialized member variables
also CID#1079276 Change-Id: Ib8e5f56f6f970a4eaae334eff2f670b20b13ad2d
-rw-r--r--sw/source/core/swg/SwXMLTextBlocks.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/sw/source/core/swg/SwXMLTextBlocks.cxx b/sw/source/core/swg/SwXMLTextBlocks.cxx
index ad9645cfd86c..93665043db1d 100644
--- a/sw/source/core/swg/SwXMLTextBlocks.cxx
+++ b/sw/source/core/swg/SwXMLTextBlocks.cxx
@@ -57,7 +57,11 @@ void SwXMLTextBlocks::ResetBlockMode ( )
}
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 );
if( !pDocSh->DoInitNew( 0 ) )
@@ -98,9 +102,11 @@ SwXMLTextBlocks::SwXMLTextBlocks( const OUString& rFile )
}
SwXMLTextBlocks::SwXMLTextBlocks( const uno::Reference < embed::XStorage >& rStg, const OUString& rName )
-: SwImpBlocks( rName )
-, bAutocorrBlock( sal_True )
-, nFlags ( 0 )
+ : SwImpBlocks( rName )
+ , bAutocorrBlock(false)
+ , bBlock(false)
+ , nFlags(0)
+ , nCurBlk(0)
{
SwDocShell* pDocSh = new SwDocShell ( SFX_CREATE_MODE_INTERNAL );
if( !pDocSh->DoInitNew( 0 ) )