[Libreoffice-commits] .: sw/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sat Feb 19 09:20:39 PST 2011


 sw/source/core/table/swtable.cxx |    2 +-
 sw/source/core/text/itratr.hxx   |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

New commits:
commit cb08cd38079406a97d44e73d00cd95d56aa177b9
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Feb 19 18:20:26 2011 +0100

    Some Cppcheck cleaning

diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx
index 9df084f..d7ba0e2 100644
--- a/sw/source/core/table/swtable.cxx
+++ b/sw/source/core/table/swtable.cxx
@@ -706,7 +706,7 @@ struct Parm
     SwShareBoxFmts aShareFmts;
 
     Parm( const SwTabCols &rN, const SwTabCols &rO ) :
-        rNew( rN ), rOld( rO ), aBoxArr( 10, 1 ) {}
+        rNew( rN ), rOld( rO ), nNewWish(0), nOldWish(0), aBoxArr( 10, 1 ){}
 };
 inline BOOL BoxInArr( SvPtrarr& rArr, SwTableBox* pBox )
 {
diff --git a/sw/source/core/text/itratr.hxx b/sw/source/core/text/itratr.hxx
index d0149f7..d00a86e 100644
--- a/sw/source/core/text/itratr.hxx
+++ b/sw/source/core/text/itratr.hxx
@@ -80,7 +80,9 @@ protected:
     void Rst( SwTxtAttr *pHt );
     void CtorInitAttrIter( SwTxtNode& rTxtNode, SwScriptInfo& rScrInf, SwTxtFrm* pFrm = 0 );
     inline SwAttrIter(SwTxtNode* pTxtNode) 
-        : pShell(0), pFnt(0), pHints(0), pScriptInfo(0), pLastOut(0), nChgCnt(0), pRedln(0), nPropFont(0), m_pTxtNode(pTxtNode) {}
+        : pShell(0), pFnt(0), pHints(0), pAttrSet(0), pScriptInfo(0), pLastOut(0), nChgCnt(0), pRedln(0), nPropFont(0), m_pTxtNode(pTxtNode) {
+            aMagicNo[SW_LATIN] = aMagicNo[SW_CJK] = aMagicNo[SW_CTL] = NULL;
+        }
 
 public:
     // Konstruktor, Destruktor


More information about the Libreoffice-commits mailing list