diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-25 22:43:52 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-25 22:50:39 -0600 |
commit | df5503af6a472afc40d2f5f144c616ebb686c248 (patch) | |
tree | aa366c7afc0d10c65f0593925c1a2f3f22f4a52e /sw | |
parent | 39005f18173edb0b5432c2634a91f3d9bde90d0b (diff) |
coverity#708449 coverity#708450 Unitialized scalar field
Change-Id: I2774fea82ff207113cd4e8b5d8a5fa60803b2211
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/itrtxt.hxx | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/sw/source/core/text/itrtxt.hxx b/sw/source/core/text/itrtxt.hxx index b68f6a2dbebd..6a194a02cdde 100644 --- a/sw/source/core/text/itrtxt.hxx +++ b/sw/source/core/text/itrtxt.hxx @@ -63,10 +63,27 @@ protected: , pInf(NULL) , pCurr(NULL) , pPrev(NULL) - {} + , nFrameStart(0) + , nY(0) + , nRegStart(0) + , nStart(0) + , nRegDiff(0) + , nLineNr(0) + , bPrev(sal_False) + , bRegisterOn(sal_False) + , bOneBlock(sal_False) + , bLastBlock(sal_False) + , bLastCenter(sal_False) + {} public: - inline SwTxtIter( SwTxtFrm *pTxtFrm, SwTxtInfo *pTxtInf ) : SwAttrIter(pTxtFrm!=NULL?pTxtFrm->GetTxtNode():NULL) - { CtorInitTxtIter( pTxtFrm, pTxtInf ); } + inline SwTxtIter( SwTxtFrm *pTxtFrm, SwTxtInfo *pTxtInf ) + : SwAttrIter( pTxtFrm != NULL ? pTxtFrm->GetTxtNode() : NULL) + , bOneBlock(sal_False) + , bLastBlock(sal_False) + , bLastCenter(sal_False) + { + CtorInitTxtIter( pTxtFrm, pTxtInf ); + } inline const SwLineLayout *GetCurr() const { return pCurr; } // NEVER 0! inline const SwLineLayout *GetNext() const { return pCurr->GetNext(); } const SwLineLayout *GetPrev(); |