diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-31 20:23:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-01 10:38:22 +0100 |
commit | 0323fc8ac0bbad748e3af5ce00be591797cd32b3 (patch) | |
tree | 0d8ff6d03da93a0291af5a1d106ad7b3838ef582 | |
parent | 73fb311ead7882ab99945dbb74d1f2fd027ed9c4 (diff) |
coverity#708441 Uninitialized pointer field
Change-Id: Ie122f0b2275ce62b8602078f897fb07f2a36234f
-rw-r--r-- | sw/source/core/text/inftxt.cxx | 11 | ||||
-rw-r--r-- | sw/source/core/text/inftxt.hxx | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index 550a50cf66e9..d1dc520393fe 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -1660,10 +1660,13 @@ SwTxtSlot::SwTxtSlot( bool bTxtLen, bool bExgLists, const sal_Char *pCh ) - : pOldTxt( 0 ), - pOldSmartTagList( 0 ), - pOldGrammarCheckList( 0 ), - pTempList( 0 ) + : pOldTxt(0) + , pOldSmartTagList(0) + , pOldGrammarCheckList(0) + , pTempList(0) + , nIdx(0) + , nLen(0) + , pInf(NULL) { if( pCh ) { diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx index 24ce4cbb9be3..d81d16e63de5 100644 --- a/sw/source/core/text/inftxt.hxx +++ b/sw/source/core/text/inftxt.hxx @@ -779,7 +779,7 @@ public: SwTxtSlot( const SwTxtSizeInfo *pNew, const SwLinePortion *pPor, bool bTxtLen, bool bExgLists, const sal_Char *pCh = NULL ); ~SwTxtSlot(); - inline bool IsOn() const { return bOn; } + bool IsOn() const { return bOn; } }; /************************************************************************* |