[Libreoffice-commits] core.git: 24 commits - filter/source lotuswordpro/source reportdesign/source sc/source sd/source starmath/inc svl/source svtools/source vcl/unx

Caolán McNamara caolanm at redhat.com
Fri Apr 4 08:26:25 PDT 2014


 filter/source/graphicfilter/ipsd/ipsd.cxx    |    4 ++--
 lotuswordpro/source/filter/lwpcelllayout.cxx |   12 ++++++++++--
 lotuswordpro/source/filter/lwpcontent.cxx    |    4 +++-
 lotuswordpro/source/filter/lwpdivinfo.cxx    |    5 ++++-
 lotuswordpro/source/filter/lwpdivopts.cxx    |   17 ++++++++++++++---
 lotuswordpro/source/filter/lwpdoc.cxx        |    9 +++++++--
 reportdesign/source/ui/report/dlgedfunc.cxx  |   19 +++++++++----------
 sc/source/core/data/dpoutput.cxx             |    3 +++
 sc/source/core/data/table1.cxx               |    3 +++
 sc/source/filter/excel/xiescher.cxx          |    1 +
 sc/source/filter/excel/xlpage.cxx            |    2 +-
 sc/source/ui/formdlg/dwfunctr.cxx            |    3 ++-
 sc/source/ui/formdlg/formdata.cxx            |    5 ++++-
 sc/source/ui/inc/dwfunctr.hxx                |    5 -----
 sc/source/ui/vba/vbacharacters.cxx           |    2 +-
 sc/source/ui/vba/vbacharacters.hxx           |    2 +-
 sd/source/filter/eppt/pptx-epptooxml.cxx     |   13 +++++++------
 sd/source/ui/inc/FrameView.hxx               |    1 -
 starmath/inc/document.hxx                    |    5 -----
 svl/source/misc/adrparse.cxx                 |    2 ++
 svtools/source/contnr/treelistentry.cxx      |   11 +++++++----
 vcl/unx/generic/gdi/salbmp.cxx               |    6 ++++++
 22 files changed, 87 insertions(+), 47 deletions(-)

New commits:
commit ba5093e723bdaf30a94f598c89d733bfc220ec7b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 15:45:18 2014 +0100

    coverity#1187856 Uncaught exception
    
    Change-Id: Ia164bdab36657b1d13cf612db96295b2933b55e2

diff --git a/sc/source/ui/vba/vbacharacters.cxx b/sc/source/ui/vba/vbacharacters.cxx
index d7aea27..64bf594 100644
--- a/sc/source/ui/vba/vbacharacters.cxx
+++ b/sc/source/ui/vba/vbacharacters.cxx
@@ -25,7 +25,7 @@
 using namespace ::ooo::vba;
 using namespace ::com::sun::star;
 
-ScVbaCharacters::ScVbaCharacters( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const ScVbaPalette& dPalette, const uno::Reference< text::XSimpleText>& xRange,const css::uno::Any& Start, const css::uno::Any& Length, bool Replace  ) throw ( css::lang::IllegalArgumentException ) : ScVbaCharacters_BASE( xParent, xContext ), m_xSimpleText(xRange), m_aPalette( dPalette),  nLength(-1), nStart(1), bReplace( Replace )
+ScVbaCharacters::ScVbaCharacters( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const ScVbaPalette& dPalette, const uno::Reference< text::XSimpleText>& xRange,const css::uno::Any& Start, const css::uno::Any& Length, bool Replace  ) throw ( css::lang::IllegalArgumentException, css::uno::RuntimeException ) : ScVbaCharacters_BASE( xParent, xContext ), m_xSimpleText(xRange), m_aPalette( dPalette),  nLength(-1), nStart(1), bReplace( Replace )
 {
     Start >>= nStart;
     if ( nStart < 1 )
diff --git a/sc/source/ui/vba/vbacharacters.hxx b/sc/source/ui/vba/vbacharacters.hxx
index e95369e..116eda5 100644
--- a/sc/source/ui/vba/vbacharacters.hxx
+++ b/sc/source/ui/vba/vbacharacters.hxx
@@ -40,7 +40,7 @@ private:
     // Add because of MSO has diferent behavior.
     bool bReplace;
 public:
-    ScVbaCharacters( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext,  const ScVbaPalette& dPalette, const css::uno::Reference< css::text::XSimpleText >& xRange, const css::uno::Any& Start, const css::uno::Any& Length, bool bReplace = false  ) throw ( css::lang::IllegalArgumentException );
+    ScVbaCharacters( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext,  const ScVbaPalette& dPalette, const css::uno::Reference< css::text::XSimpleText >& xRange, const css::uno::Any& Start, const css::uno::Any& Length, bool bReplace = false  ) throw ( css::lang::IllegalArgumentException, css::uno::RuntimeException );
 
     virtual ~ScVbaCharacters() {}
     // Attributes
commit 5d0562f11f7e438758d44971c02c44f15cb14e79
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 15:35:47 2014 +0100

    coverity#738804 Uninitialized pointer field
    
    Change-Id: I75efc97e77336f8b4be72e3b7b4e8af9bb7c6e06

diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index fd77fdf..fcbeada 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -99,7 +99,8 @@ ScFunctionDockWin::ScFunctionDockWin( SfxBindings* pBindingsP,
     aDDFuncList     ( this, ResId( DDLB_FUNC, *rResId.GetResMgr()  ) ),
     aInsertButton   ( this, ResId( IMB_INSERT, *rResId.GetResMgr()  ) ),
     aFiFuncDesc     ( this, ResId( FI_FUNCDESC, *rResId.GetResMgr()  ) ),
-    aOldSize        (0,0)
+    aOldSize        (0,0),
+    pFuncDesc       (NULL)
 {
     FreeResource();
     InitLRUList();
commit 4e8add43d5461d1752fc73de3ccfaa8d90348b6e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 15:34:30 2014 +0100

    coverity#738804 unused nLeftSlot/nRightSlot members
    
    Change-Id: Ib35dc632d51b8c515d96713457d91ffdf41eb2c7

diff --git a/sc/source/ui/inc/dwfunctr.hxx b/sc/source/ui/inc/dwfunctr.hxx
index 1dc1887..a7b6b49 100644
--- a/sc/source/ui/inc/dwfunctr.hxx
+++ b/sc/source/ui/inc/dwfunctr.hxx
@@ -57,8 +57,6 @@ private:
     SfxChildAlignment   eSfxOldAlignment;
     ImageButton         aInsertButton;
     FixedText           aFiFuncDesc;
-    sal_uInt16          nLeftSlot;
-    sal_uInt16          nRightSlot;
     sal_uLong           nMinWidth;
     sal_uLong           nMinHeight;
     Size                aOldSize;
@@ -112,9 +110,6 @@ public:
     using SfxDockingWindow::Notify;
     virtual void    Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
 
-    void            SetSlotIDs( sal_uInt16 nLeft, sal_uInt16 nRight )
-                        { nLeftSlot = nLeft; nRightSlot = nRight; }
-
     void            InitLRUList();
 
     void            Initialize (SfxChildWinInfo* pInfo);
commit 7409f49af93643d080e21c42d3c53cd9644dff33
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 15:32:59 2014 +0100

    coverity#738805 Uninitialized pointer field
    
    Change-Id: If0ba0c87bb2d849af3584cfa83885d6aa3898ac9

diff --git a/sc/source/ui/formdlg/formdata.cxx b/sc/source/ui/formdlg/formdata.cxx
index 9767be0..4ed9680 100644
--- a/sc/source/ui/formdlg/formdata.cxx
+++ b/sc/source/ui/formdlg/formdata.cxx
@@ -21,7 +21,10 @@
 
 
 
-ScFormEditData::ScFormEditData() : formula::FormEditData()
+ScFormEditData::ScFormEditData()
+    : formula::FormEditData()
+    , pInputHandler(NULL)
+    , pScDocShell(NULL)
 {
     Reset();
 }
commit eac73d585519e950e639a17f4f3ae99a5ceb2daf
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 15:31:20 2014 +0100

    coverity#738829 unused mpVDev member
    
    Change-Id: Iaafca9ec66cda8e1ce81c92b1cf4c7981685e563

diff --git a/sd/source/ui/inc/FrameView.hxx b/sd/source/ui/inc/FrameView.hxx
index 5ea6f55..739debb 100644
--- a/sd/source/ui/inc/FrameView.hxx
+++ b/sd/source/ui/inc/FrameView.hxx
@@ -174,7 +174,6 @@ public:
 
 private:
     sal_uInt16          mnRefCount;
-    VirtualDevice*  mpVDev;
     sal_Bool            mbRuler;
     SetOfByte       maVisibleLayers;
     SetOfByte       maLockedLayers;
commit 9ae70a7c16397a1840c88da55d60eb6406a32c18
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 15:27:22 2014 +0100

    coverity#738848 unused members
    
    Change-Id: I96c7d101d4bb6efbd9a93ea8ef4b8e5bd878c6ea

diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index 7dbab07..a325201 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -97,15 +97,10 @@ class SmDocShell : public SfxObjectShell, public SfxListener
     SmParser            aInterpreter;
     OUString            aAccText;
     SmNode             *pTree;
-    SfxMenuBarManager  *pMenuMgr;
     SfxItemPool        *pEditEngineItemPool;
     EditEngine         *pEditEngine;
     SfxPrinter         *pPrinter;       //q.v. comment to SmPrinter Access!
     Printer            *pTmpPrinter;    //ditto
-    long                nLeftBorder,
-                        nRightBorder,
-                        nTopBorder,
-                        nBottomBorder;
     sal_uInt16          nModifyCount;
     bool                bIsFormulaArranged;
     SmCursor           *pCursor;
commit 01b0201436c1bda7f841691e2c31b71c584989f5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 15:26:17 2014 +0100

    coverity#738855 Uninitialized pointer field
    
    Change-Id: I3c1528f2dd8e3bde2672ebc153c9cb5c5c0a13fd

diff --git a/svl/source/misc/adrparse.cxx b/svl/source/misc/adrparse.cxx
index 68dc841..3b74063 100644
--- a/svl/source/misc/adrparse.cxx
+++ b/svl/source/misc/adrparse.cxx
@@ -441,6 +441,8 @@ OUString SvAddressParser_Impl::reparseComment(sal_Unicode const * pBegin,
 
 SvAddressParser_Impl::SvAddressParser_Impl(SvAddressParser * pParser,
                                            const OUString& rInput)
+    : m_pCurTokenContentBegin(NULL)
+    , m_pCurTokenContentEnd(NULL)
 {
     m_pInputPos = rInput.getStr();
     m_pInputEnd = m_pInputPos + rInput.getLength();
commit 8aba3a25ddccf7c021950ab54ab9d47dd8dd7643
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 15:22:52 2014 +0100

    coverity#984147 Uninitialized pointer field
    
    the original SvLBoxEntry::Clone did...
    
    pUserData = ((SvLBoxEntry*)pSource)->GetUserData();
    nEntryFlags = ((SvLBoxEntry*)pSource)->nEntryFlags;
    
    so presumably this is what we want to do here
    
    Change-Id: Icaafb1f5c62847167886a230391efa5f7a3fca99

diff --git a/svtools/source/contnr/treelistentry.cxx b/svtools/source/contnr/treelistentry.cxx
index 60a960f..378a646 100644
--- a/svtools/source/contnr/treelistentry.cxx
+++ b/svtools/source/contnr/treelistentry.cxx
@@ -57,10 +57,13 @@ SvTreeListEntry::SvTreeListEntry()
 {
 }
 
-SvTreeListEntry::SvTreeListEntry(const SvTreeListEntry& r) :
-    pParent(NULL),
-    nAbsPos(r.nAbsPos),
-    nListPos(r.nListPos & 0x7FFFFFFF)
+SvTreeListEntry::SvTreeListEntry(const SvTreeListEntry& r)
+    : pParent(NULL)
+    , nAbsPos(r.nAbsPos)
+    , nListPos(r.nListPos & 0x7FFFFFFF)
+    , bIsMarked(r.bIsMarked)
+    , pUserData(r.pUserData)
+    , nEntryFlags(r.nEntryFlags)
 {
     SvTreeListEntries::const_iterator it = r.maChildren.begin(), itEnd = r.maChildren.end();
     for (; it != itEnd; ++it)
commit dcee310c8f31ab2acbd3544a3e5d7b754a456456
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 15:10:50 2014 +0100

    coverity#738942 Uninitialized scalar field
    
    Change-Id: Icb5372e8fa8a91ae31eda551a4fa47ef8ed9cbe9

diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx
index 0b1c5bd..307b6d5 100644
--- a/vcl/unx/generic/gdi/salbmp.cxx
+++ b/vcl/unx/generic/gdi/salbmp.cxx
@@ -924,6 +924,12 @@ ImplSalDDB::ImplSalDDB(
         maTwoRect.mnSrcWidth = maTwoRect.mnDestWidth = nWidth;
         maTwoRect.mnSrcHeight = maTwoRect.mnDestHeight = nHeight;
     }
+    else
+    {
+        maTwoRect.mnSrcX = maTwoRect.mnSrcY = maTwoRect.mnDestX = maTwoRect.mnDestY = 0;
+        maTwoRect.mnSrcWidth = maTwoRect.mnDestWidth = 0;
+        maTwoRect.mnSrcHeight = maTwoRect.mnDestHeight = 0;
+    }
 }
 
 ImplSalDDB::~ImplSalDDB()
commit 64e291376f5d0efd1e11ef686fa810a6056f5cea
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:33:48 2014 +0100

    coverity#738816 Uninitialized scalar field
    
    Change-Id: I4d4ec5391321879746a833b72de211e2b05056b0

diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index 4ba1fd9..6d94539 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -310,12 +310,13 @@ ShapeExport& PowerPointShapeExport::WriteUnknownShape( Reference< XShape > xShap
 }
 
 PowerPointExport::PowerPointExport( const Reference< XComponentContext > & rxCtxt  )
-    : XmlFilterBase( rxCtxt ),
-      PPTWriterBase(),
-      mnLayoutFileIdMax( 1 ),
-      mnSlideIdMax( 1 << 8 ),
-      mnSlideMasterIdMax( 1U << 31 ),
-      mnAnimationNodeIdMax( 1 )
+    : XmlFilterBase(rxCtxt)
+    , PPTWriterBase()
+    , mnLayoutFileIdMax(1)
+    , mnSlideIdMax(1 << 8)
+    , mnSlideMasterIdMax(1U << 31)
+    , mnAnimationNodeIdMax(1)
+    , mbCreateNotes(false)
 {
     memset( mLayoutInfo, 0, sizeof(mLayoutInfo) );
 }
commit e28a1f3b165832149467e0b689d0b48bfd2600c6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:32:13 2014 +0100

    coverity#738794 Uninitialized scalar field
    
    Change-Id: If3dfcc18e3f643f54d852b180002385e8459b098

diff --git a/sc/source/filter/excel/xlpage.cxx b/sc/source/filter/excel/xlpage.cxx
index a05aa10..e9a96fa 100644
--- a/sc/source/filter/excel/xlpage.cxx
+++ b/sc/source/filter/excel/xlpage.cxx
@@ -182,7 +182,7 @@ void XclPageData::SetDefaults()
     mfHeaderMargin  = mfFooterMargin   = XclTools::GetInchFromHmm( EXC_MARGIN_DEFAULT_HF );
     mfHdrLeftMargin = mfHdrRightMargin = XclTools::GetInchFromHmm( EXC_MARGIN_DEFAULT_HLR );
     mfFtrLeftMargin = mfFtrRightMargin = XclTools::GetInchFromHmm( EXC_MARGIN_DEFAULT_FLR );
-    mnPaperSize = EXC_PAPERSIZE_DEFAULT;
+    mnStrictPaperSize = mnPaperSize = EXC_PAPERSIZE_DEFAULT;
     mnPaperWidth = 0;
     mnPaperHeight = 0;
     mnCopies = 1;
commit 82d717cd0b1b7f4130d2a2e4b197b1cb70694264
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:28:14 2014 +0100

    coverity#738793 Uninitialized scalar field
    
    Change-Id: I2ab2888ba68193bfd41e8e2f142953cbff7b32d1

diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx
index 2055a27..e558273 100644
--- a/sc/source/filter/excel/xiescher.cxx
+++ b/sc/source/filter/excel/xiescher.cxx
@@ -189,6 +189,7 @@ typedef TSdrObjectPtr< SdrObject > SdrObjectPtr;
 XclImpDrawObjBase::XclImpDrawObjBase( const XclImpRoot& rRoot ) :
     XclImpRoot( rRoot ),
     mnObjId( EXC_OBJ_INVALID_ID ),
+    mnTab( 0 ),
     mnObjType( EXC_OBJTYPE_UNKNOWN ),
     mnDffShapeId( 0 ),
     mnDffFlags( 0 ),
commit 791257261d1dc3df20674ee1b905b03854c778cb
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:26:51 2014 +0100

    coverity#738791 Uninitialized scalar field
    
    Change-Id: I962aa178ee4d99d4b0dba3a864a5da0e728b269d

diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 523e8f4..dac210b 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -225,6 +225,7 @@ ScTable::ScTable( ScDocument* pDoc, SCTAB nNewTab, const OUString& rNewName,
                     bool bColInfo, bool bRowInfo ) :
     aName( rNewName ),
     aCodeName( rNewName ),
+    nLinkRefreshDelay( 0 ),
     nLinkMode( 0 ),
     aPageStyle( ScGlobal::GetRscString(STR_STYLENAME_STANDARD) ),
     nRepeatStartX( SCCOL_REPEAT_NONE ),
@@ -242,6 +243,8 @@ ScTable::ScTable( ScDocument* pDoc, SCTAB nNewTab, const OUString& rNewName,
     mpFilteredRows(new ScFlatBoolRowSegments),
     pOutlineTable( NULL ),
     pSheetEvents( NULL ),
+    nTableAreaX( 0 ),
+    nTableAreaY( 0 ),
     nTab( nNewTab ),
     pDocument( pDoc ),
     pSearchText ( NULL ),
commit 261391b247adcbbd9ccd7ff5efc5a4eecae04efc
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:24:43 2014 +0100

    coverity#738790 Uninitialized scalar field
    
    Change-Id: Id33ca48b70382bbb59f0ee0a34510c00766e5610

diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index 704861c..d31ac42 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -519,6 +519,9 @@ ScDPOutput::ScDPOutput( ScDocument* pD, const uno::Reference<sheet::XDimensionsS
     nColFmtCount( 0 ),
     nRowFmtCount( 0 ),
     nSingleNumFmt( 0 ),
+    nColCount(0),
+    nRowCount(0),
+    nHeaderSize(0),
     bDoFilter(bFilter),
     bResultsError(false),
     mbHasDataLayout(false),
commit 14cb069912d9e855b4205d6507042970f4805f6e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:22:34 2014 +0100

    coverity#738784 Uninitialized scalar field
    
    Change-Id: Ibe261cb6b7c91b6a72fc24aef05ef269c69c390f

diff --git a/reportdesign/source/ui/report/dlgedfunc.cxx b/reportdesign/source/ui/report/dlgedfunc.cxx
index cf302d6..ad84002 100644
--- a/reportdesign/source/ui/report/dlgedfunc.cxx
+++ b/reportdesign/source/ui/report/dlgedfunc.cxx
@@ -117,23 +117,22 @@ void DlgEdFunc::ForceScroll( const Point& rPos )
     aScrollTimer.Start();
 }
 
-
-
 DlgEdFunc::DlgEdFunc( OReportSection* _pParent )
-:m_pParent(_pParent),
- m_rView(_pParent->getSectionView()),
- m_xOverlappingObj(NULL),
- m_pOverlappingObj(NULL),
- m_bSelectionMode(false),
- m_bUiActive(false),
- m_bShowPropertyBrowser(false)
+    : m_pParent(_pParent)
+    , m_rView(_pParent->getSectionView())
+    , m_xOverlappingObj(NULL)
+    , m_pOverlappingObj(NULL)
+    , m_nOverlappedControlColor(0)
+    , m_nOldColor(0)
+    , m_bSelectionMode(false)
+    , m_bUiActive(false)
+    , m_bShowPropertyBrowser(false)
 {
     aScrollTimer.SetTimeoutHdl( LINK( this, DlgEdFunc, ScrollTimeout ) );
     m_rView.SetActualWin( m_pParent);
     aScrollTimer.SetTimeout( SELENG_AUTOREPEAT_INTERVAL );
 }
 
-
 void DlgEdFunc::setOverlappedControlColor(sal_Int32 _nColor)
 {
     m_nOverlappedControlColor = _nColor;
commit 3c66022240aeacdcae9c9ff15292a14c59171103
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:12:58 2014 +0100

    coverity#738694 Uninitialized scalar field
    
    Change-Id: I07fc55507571183be9f81d2bf5a64adc8c8a110a

diff --git a/lotuswordpro/source/filter/lwpdoc.cxx b/lotuswordpro/source/filter/lwpdoc.cxx
index 5572985..bca8886 100644
--- a/lotuswordpro/source/filter/lwpdoc.cxx
+++ b/lotuswordpro/source/filter/lwpdoc.cxx
@@ -69,8 +69,13 @@
 #include <osl/thread.h>
 
 LwpDocument::LwpDocument(LwpObjectHeader& objHdr, LwpSvStream* pStrm)
-    : LwpDLNFPVList(objHdr, pStrm), m_pOwnedFoundry(NULL), m_pLnOpts(NULL)
-{}
+    : LwpDLNFPVList(objHdr, pStrm)
+    , m_pOwnedFoundry(NULL)
+    , m_nFlags(0)
+    , m_nPersistentFlags(0)
+    , m_pLnOpts(NULL)
+{
+}
 
 LwpDocument::~LwpDocument()
 {
commit b08fa45ee4b0cdb6799d37029f975588a5f38fc5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:11:06 2014 +0100

    coverity#738693 Uninitialized scalar field
    
    Change-Id: Icf69f17d7e4e243987b67b28ce2885cba2a5d9e7

diff --git a/lotuswordpro/source/filter/lwpdivopts.cxx b/lotuswordpro/source/filter/lwpdivopts.cxx
index 70ee566..9c8a98a 100644
--- a/lotuswordpro/source/filter/lwpdivopts.cxx
+++ b/lotuswordpro/source/filter/lwpdivopts.cxx
@@ -127,7 +127,9 @@ sal_uInt16 LwpTextLanguage::ConvertFrom96(sal_uInt16 orgLang)
 
 LwpDivisionOptions::LwpDivisionOptions(LwpObjectHeader& objHdr, LwpSvStream* pStrm)
     : LwpObject(objHdr, pStrm)
-{}
+    , m_nOptionFlag(0)
+{
+}
 
 LwpDivisionOptions::~LwpDivisionOptions()
 {}
commit ccd6e6270013b8859676546f21e96f2d0c74fd4e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:10:35 2014 +0100

    coverity#738692 Uninitialized scalar field
    
    Change-Id: I8f93df9ada7009b001543a65c90ceb9c545bbdcf

diff --git a/lotuswordpro/source/filter/lwpdivopts.cxx b/lotuswordpro/source/filter/lwpdivopts.cxx
index 2453710..70ee566 100644
--- a/lotuswordpro/source/filter/lwpdivopts.cxx
+++ b/lotuswordpro/source/filter/lwpdivopts.cxx
@@ -66,7 +66,12 @@
 #include "lwpfilehdr.hxx"
 
 LwpHyphenOptions::LwpHyphenOptions()
-{}
+    : m_nFlags(0)
+    , m_nZoneBefore(0)
+    , m_nZoneAfter(0)
+    , m_nMaxLines(0)
+{
+}
 
 LwpHyphenOptions::~LwpHyphenOptions()
 {}
commit 02cd8fe346e0e7929a2ab2c9939f0cd1eb50f695
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:09:48 2014 +0100

    coverity#738691 Uninitialized scalar field
    
    Change-Id: I961ab20b4ecb902469e9f5eec4c13b9f51a0aba1

diff --git a/lotuswordpro/source/filter/lwpdivopts.cxx b/lotuswordpro/source/filter/lwpdivopts.cxx
index 292034f..2453710 100644
--- a/lotuswordpro/source/filter/lwpdivopts.cxx
+++ b/lotuswordpro/source/filter/lwpdivopts.cxx
@@ -80,7 +80,11 @@ void LwpHyphenOptions::Read(LwpObjectStream *pStrm)
     pStrm->SkipExtra();
 }
 
-LwpTextLanguage::LwpTextLanguage(){}
+LwpTextLanguage::LwpTextLanguage()
+    : m_nLanguage(0)
+{
+}
+
 LwpTextLanguage::~LwpTextLanguage(){}
 
 void LwpTextLanguage::Read(LwpObjectStream *pStrm)
commit 96d9d6ceffe29b1f4ce91bfd5136eb6a37ac3df9
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:08:35 2014 +0100

    coverity#738690 Uninitialized scalar field
    
    Change-Id: I4820a2ad2e4684c02974823348feae32869eb74a

diff --git a/lotuswordpro/source/filter/lwpdivinfo.cxx b/lotuswordpro/source/filter/lwpdivinfo.cxx
index ffa25a8..564309e 100644
--- a/lotuswordpro/source/filter/lwpdivinfo.cxx
+++ b/lotuswordpro/source/filter/lwpdivinfo.cxx
@@ -70,7 +70,10 @@
 
 LwpDivInfo::LwpDivInfo(LwpObjectHeader& objHdr, LwpSvStream* pStrm)
     : LwpObject(objHdr, pStrm)
-{}
+    , m_nFlags(0)
+    , m_nPageNoStyle(0)
+{
+}
 
 LwpDivInfo::~LwpDivInfo(){}
 
commit ec7f407b8cf104d64f43f0d4f4cb89d95050ce11
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:07:48 2014 +0100

    coverity#738689 Uninitialized scalar field
    
    Change-Id: I269a52ee3c4ddec5188d8f97aa8fe7273fae2978

diff --git a/lotuswordpro/source/filter/lwpcontent.cxx b/lotuswordpro/source/filter/lwpcontent.cxx
index 254ac45..4b6e12a 100644
--- a/lotuswordpro/source/filter/lwpcontent.cxx
+++ b/lotuswordpro/source/filter/lwpcontent.cxx
@@ -78,7 +78,9 @@ void LwpHeadContent::Read()
 
 LwpContent::LwpContent(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
     : LwpDLNFVList(objHdr, pStrm)
-{}
+    , m_nFlags(0)
+{
+}
 
 void LwpContent::Read()
 {
commit 84bf09ff69e4fc0a5543c10296e4e704fa7d6c56
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:07:12 2014 +0100

    coverity#738687 Uninitialized scalar field
    
    Change-Id: Ie6d1ed2cc0ac17cf74a14337ca6ebbd545e8783f

diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx
index 6f59a53..85a3d1d 100644
--- a/lotuswordpro/source/filter/lwpcelllayout.cxx
+++ b/lotuswordpro/source/filter/lwpcelllayout.cxx
@@ -680,7 +680,12 @@ void LwpCellLayout::ApplyProtect(XFCell * pCell, LwpObjectID aTableID)
 
 LwpConnectedCellLayout::LwpConnectedCellLayout(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
     : LwpCellLayout(objHdr, pStrm)
-{}
+    , cnumrows(0)
+    , cnumcols(0)
+    , m_nRealrowspan(0)
+    , m_nRealcolspan(0)
+{
+}
 
 LwpConnectedCellLayout::~LwpConnectedCellLayout()
 {}
commit 021ac74ca6171572b85e7b3358d7849dd7802da7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:05:54 2014 +0100

    coverity#738686 Uninitialized scalar field
    
    Change-Id: Iaefd609a3e5dbfda796da1bb9bb48a1b0d9605a3

diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx
index a92720d..6f59a53 100644
--- a/lotuswordpro/source/filter/lwpcelllayout.cxx
+++ b/lotuswordpro/source/filter/lwpcelllayout.cxx
@@ -75,8 +75,11 @@
 
 LwpCellLayout::LwpCellLayout(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
     : LwpMiddleLayout(objHdr, pStrm)
+    , crowid(0)
+    , ccolid(0)
     , cType(LDT_NONE)
-{}
+{
+}
 
 LwpCellLayout::~LwpCellLayout()
 {}
commit 17db9b37bd9362758394c9e0796860f9f04ad4dc
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 14:04:25 2014 +0100

    coverity#738638 Uninitialized scalar field
    
    Change-Id: I4349f084950c21dd5d8b6bdb0438f00748e50eb6

diff --git a/filter/source/graphicfilter/ipsd/ipsd.cxx b/filter/source/graphicfilter/ipsd/ipsd.cxx
index f3b4f89..1dbe3cb 100644
--- a/filter/source/graphicfilter/ipsd/ipsd.cxx
+++ b/filter/source/graphicfilter/ipsd/ipsd.cxx
@@ -92,6 +92,8 @@ PSDReader::PSDReader(SvStream &rStream)
     , mpReadAcc(NULL)
     , mpWriteAcc(NULL)
     , mpMaskWriteAcc(NULL)
+    , mnDestBitDepth(0)
+    , mbCompression(false)
     , mpPalette(NULL)
 {
 }
@@ -102,8 +104,6 @@ PSDReader::~PSDReader()
     delete mpFileHeader;
 }
 
-
-
 sal_Bool PSDReader::ReadPSD(Graphic & rGraphic )
 {
     if (m_rPSD.GetError())


More information about the Libreoffice-commits mailing list