coverity#738574 Uninitialized scalar field

Change-Id: Ia7cca6e2a2bc3240a32509697a999461491a2747
This commit is contained in:
Caolán McNamara 2014-04-27 15:50:59 +01:00
parent 766d5e4ec0
commit b3e332b4a7

View File

@ -769,15 +769,29 @@ namespace cppcanvas
EMFPCustomLineCap *customEndCap; EMFPCustomLineCap *customEndCap;
public: public:
EMFPPen () : EMFPBrush () EMFPPen ()
: EMFPBrush()
, width(0.0)
, startCap(0)
, endCap(0)
, lineJoin(0)
, mitterLimit(0.0)
, dashStyle(0)
, dashCap(0)
, dashOffset(0.0)
, dashPatternLen(0)
, dashPattern(NULL)
, alignment(0)
, compoundArrayLen(0)
, compoundArray(NULL)
, customStartCapLen(0)
, customStartCap(NULL)
, customEndCapLen(0)
, customEndCap(NULL)
{ {
dashPattern = NULL;
compoundArray = NULL;
customStartCap = NULL;
customEndCap = NULL;
} }
virtual ~EMFPPen () virtual ~EMFPPen()
{ {
delete[] dashPattern; delete[] dashPattern;
delete[] compoundArray; delete[] compoundArray;