Kaydet (Commit) fb135c7b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#708395 Uninitialized pointer field

Change-Id: If7c1d6e628e50bb0be2e1218d4f1d798744a53a1
üst df3e0d46
...@@ -34,31 +34,31 @@ ...@@ -34,31 +34,31 @@
#include <basegfx/numeric/ftools.hxx> #include <basegfx/numeric/ftools.hxx>
ImpXPolygon::ImpXPolygon( sal_uInt16 nInitSize, sal_uInt16 _nResize ) ImpXPolygon::ImpXPolygon(sal_uInt16 nInitSize, sal_uInt16 _nResize)
: pPointAry(NULL)
, pFlagAry(NULL)
, pOldPointAry(NULL)
, bDeleteOldPoints(sal_False)
, nSize(0)
, nResize(_nResize)
, nPoints(0)
, nRefCount(1)
{ {
pPointAry = NULL; Resize(nInitSize);
pFlagAry = NULL;
bDeleteOldPoints = sal_False;
nSize = 0;
nResize = _nResize;
nPoints = 0;
nRefCount = 1;
Resize( nInitSize );
} }
ImpXPolygon::ImpXPolygon( const ImpXPolygon& rImpXPoly ) ImpXPolygon::ImpXPolygon( const ImpXPolygon& rImpXPoly )
: pPointAry(NULL)
, pFlagAry(NULL)
, pOldPointAry(NULL)
, bDeleteOldPoints(sal_False)
, nSize(0)
, nResize(rImpXPoly.nResize)
, nPoints(0)
, nRefCount(1)
{ {
( (ImpXPolygon&) rImpXPoly ).CheckPointDelete(); ( (ImpXPolygon&) rImpXPoly ).CheckPointDelete();
pPointAry = NULL;
pFlagAry = NULL;
bDeleteOldPoints = sal_False;
nSize = 0;
ImpXPolygon::nResize = rImpXPoly.nResize;
nPoints = 0;
nRefCount = 1;
Resize( rImpXPoly.nSize ); Resize( rImpXPoly.nSize );
// copy // copy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment