diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-27 15:50:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-28 10:31:02 +0100 |
commit | b3e332b4a70658548c4560c2bc460143548559df (patch) | |
tree | 6a3960385b04a4553fcb5a946baf5b6b7e6c9a74 /cppcanvas | |
parent | 766d5e4ec0182ecbeaac9475dedad9a631f9cf47 (diff) |
coverity#738574 Uninitialized scalar field
Change-Id: Ia7cca6e2a2bc3240a32509697a999461491a2747
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/emfplus.cxx | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index a34b4d31cf0b..5774eb6b42d1 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -769,15 +769,29 @@ namespace cppcanvas EMFPCustomLineCap *customEndCap; 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[] compoundArray; |