[Libreoffice-commits] core.git: 6 commits - filter/source

Caolán McNamara caolanm at redhat.com
Mon Mar 10 09:18:27 PDT 2014


 filter/source/graphicfilter/icgm/elements.cxx |    3 +++
 filter/source/graphicfilter/idxf/dxf2mtf.cxx  |   12 +++++++++++-
 filter/source/graphicfilter/idxf/dxfblkrd.cxx |    3 ++-
 filter/source/graphicfilter/idxf/dxftblrd.cxx |    7 ++++---
 filter/source/msfilter/viscache.hxx           |    2 ++
 filter/source/svg/svgfilter.cxx               |    2 ++
 6 files changed, 24 insertions(+), 5 deletions(-)

New commits:
commit fc225f32d95f87ceaa6984339f9b5a2ebd3d3682
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 10 16:16:26 2014 +0000

    coverity#707857 Uninitialized scalar field
    
    Change-Id: I5ac6a1807f1c7f9041b768c96e5f2ffdc3a07a86

diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx
index 5039305..d8703da 100644
--- a/filter/source/svg/svgfilter.cxx
+++ b/filter/source/svg/svgfilter.cxx
@@ -67,6 +67,8 @@ SVGFilter::SVGFilter( const Reference< XComponentContext >& rxCtx ) :
     mpSdrModel( NULL ),
     mbPresentation( sal_False ),
     mbExportAll( sal_False ),
+    mbSinglePage( sal_False ),
+    mnVisiblePage( -1 ),
     mpObjects( NULL )
 {
 }
commit 4b99d7ebe0b78c46e22f78c4f7005901904711b9
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 10 16:13:25 2014 +0000

    coverity#707856 Uninitialized scalar field
    
    Change-Id: Ib57a4703dfb20aab3b5976fab0331b93e4983c05

diff --git a/filter/source/msfilter/viscache.hxx b/filter/source/msfilter/viscache.hxx
index 0d1049e..5745f9e 100644
--- a/filter/source/msfilter/viscache.hxx
+++ b/filter/source/msfilter/viscache.hxx
@@ -17,6 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
+#include <sfx2/objsh.hxx>
 #include <tools/stream.hxx>
 #include <vcl/gdimtf.hxx>
 #include <vcl/bitmap.hxx>
@@ -35,6 +36,7 @@ class Impl_OlePres
 public:
                     Impl_OlePres( sal_uLong nF )
                         : nFormat( nF )
+                        , nAspect( ASPECT_CONTENT )
                         , pBmp( NULL )
                         , pMtf( NULL )
                         , nAdvFlags( 0x2 )  // in Dokument gefunden
commit aace6e19e2e5d72918a04b88697dcb829887fc27
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 10 16:08:20 2014 +0000

    coverity#707818 Uninitialized scalar field
    
    Change-Id: I4c099d0e91cb1b90807a94d4e3ac17747a4b4b92

diff --git a/filter/source/graphicfilter/idxf/dxftblrd.cxx b/filter/source/graphicfilter/idxf/dxftblrd.cxx
index eff5663..be1d6c0 100644
--- a/filter/source/graphicfilter/idxf/dxftblrd.cxx
+++ b/filter/source/graphicfilter/idxf/dxftblrd.cxx
@@ -24,10 +24,11 @@
 //----------------------------------DXFLType-----------------------------------
 
 DXFLType::DXFLType()
+    : pSucc(NULL)
+    , nFlags(0)
+    , nDashCount(0)
+    , fPatternLength(0.0)
 {
-    pSucc=NULL;
-    nFlags=0;
-    nDashCount=0;
 }
 
 void DXFLType::Read(DXFGroupReader & rDGR)
commit 10041dc7c378901d51c6a72afed155528ed79de0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 10 16:06:56 2014 +0000

    coverity#707815 Uninitialized scalar field
    
    Change-Id: If2f267f0815570c0484a78c2cc58cfba64a32a9b

diff --git a/filter/source/graphicfilter/idxf/dxfblkrd.cxx b/filter/source/graphicfilter/idxf/dxfblkrd.cxx
index eb100bd..d84a2fa 100644
--- a/filter/source/graphicfilter/idxf/dxfblkrd.cxx
+++ b/filter/source/graphicfilter/idxf/dxfblkrd.cxx
@@ -28,8 +28,9 @@
 
 
 DXFBlock::DXFBlock()
+    : pSucc(NULL)
+    , nFlags(0)
 {
-    pSucc=NULL;
 }
 
 
commit a65c80aae1bfa1f71329737d37216f0de763c70f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 10 16:03:11 2014 +0000

    coverity#707814 Uninitialized scalar field
    
    Change-Id: I5d4482eddc51b3c92a5ffb02d6048f3ae528184a

diff --git a/filter/source/graphicfilter/idxf/dxf2mtf.cxx b/filter/source/graphicfilter/idxf/dxf2mtf.cxx
index 592eef5..31f33fb 100644
--- a/filter/source/graphicfilter/idxf/dxf2mtf.cxx
+++ b/filter/source/graphicfilter/idxf/dxf2mtf.cxx
@@ -751,7 +751,17 @@ void DXF2GDIMetaFile::DrawEntities(const DXFEntities & rEntities,
 }
 
 
-DXF2GDIMetaFile::DXF2GDIMetaFile():pVirDev(NULL), pDXF(NULL), nBlockColor(0), nParentLayerColor(0)
+DXF2GDIMetaFile::DXF2GDIMetaFile()
+    : pVirDev(NULL)
+    , pDXF(NULL)
+    , bStatus(false)
+    , OptPointsPerCircle(0)
+    , nMinPercent(0)
+    , nMaxPercent(0)
+    , nLastPercent(0)
+    , nMainEntitiesCount(0)
+    , nBlockColor(0)
+    , nParentLayerColor(0)
 {
 }
 
commit 24627a99fbab0dda15ab90c9bdc39810566c2dd7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 10 15:58:42 2014 +0000

    coverity#707813 Uninitialized scalar field
    
    Change-Id: Ia32de1febc5d4c139a7369d6b069a25ceac5e266

diff --git a/filter/source/graphicfilter/icgm/elements.cxx b/filter/source/graphicfilter/icgm/elements.cxx
index 0f41040..6b2bc38 100644
--- a/filter/source/graphicfilter/icgm/elements.cxx
+++ b/filter/source/graphicfilter/icgm/elements.cxx
@@ -281,6 +281,9 @@ void CGMElements::Init()
     nBackGroundColor = nAuxiliaryColor = 0;
 
     bSegmentCount = sal_False;
+
+    nScalingFactor = 1.0;
+    nTextAlignmentVCont = nTextAlignmentHCont = 0.0;
 }
 
 


More information about the Libreoffice-commits mailing list