summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-31 20:40:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-01 10:38:22 +0100
commitfb135c7b476f264fd5582fda91059e471c998963 (patch)
tree3f2a87b300cfe8fe25286f73a5d4ba0bf38248c3
parentdf3e0d469fadc008aaf2bf1277a28e87a88bf959 (diff)
coverity#708395 Uninitialized pointer field
Change-Id: If7c1d6e628e50bb0be2e1218d4f1d798744a53a1
-rw-r--r--svx/source/xoutdev/_xpoly.cxx36
1 files changed, 18 insertions, 18 deletions
diff --git a/svx/source/xoutdev/_xpoly.cxx b/svx/source/xoutdev/_xpoly.cxx
index 371d44dc12e0..d5b608449cfd 100644
--- a/svx/source/xoutdev/_xpoly.cxx
+++ b/svx/source/xoutdev/_xpoly.cxx
@@ -34,31 +34,31 @@
#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;
- pFlagAry = NULL;
- bDeleteOldPoints = sal_False;
- nSize = 0;
- nResize = _nResize;
- nPoints = 0;
- nRefCount = 1;
-
- Resize( nInitSize );
+ Resize(nInitSize);
}
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();
- pPointAry = NULL;
- pFlagAry = NULL;
- bDeleteOldPoints = sal_False;
- nSize = 0;
- ImpXPolygon::nResize = rImpXPoly.nResize;
- nPoints = 0;
- nRefCount = 1;
-
Resize( rImpXPoly.nSize );
// copy