diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-28 09:20:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-28 10:31:02 +0100 |
commit | 9f1e44e190f699751b0bfc6438fa2de9f51fd5aa (patch) | |
tree | cfaa68298624f31c4efbf598d21ed6f1142550a6 /cppcanvas/source/mtfrenderer | |
parent | 76f74ef908a50ac3b63d0b3a190f17dce33cbd0f (diff) |
coverity#738576 Uninitialized pointer field
Change-Id: Id945cf9549b7f633f7deb1f237a2bf6536f221c1
Diffstat (limited to 'cppcanvas/source/mtfrenderer')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 4b5935a1ae53..839aa402d58f 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -2865,10 +2865,27 @@ namespace cppcanvas ImplRenderer::ImplRenderer( const CanvasSharedPtr& rCanvas, const GDIMetaFile& rMtf, - const Parameters& rParams ) : - CanvasGraphicHelper( rCanvas ), - maActions() + const Parameters& rParams ) + : CanvasGraphicHelper(rCanvas) + , maActions() + , fPageScale(0.0) + , nOriginX(0) + , nOriginY(0) + , nHDPI(0) + , nVDPI(0) + , nFrameLeft(0) + , nFrameTop(0) + , nFrameRight(0) + , nFrameBottom(0) + , nPixX(0) + , nPixY(0) + , nMmX(0) + , nMmY(0) + , mbMultipart(false) + , mMFlags(0) { + memset (aObjects, 0, sizeof (aObjects)); + SAL_INFO( "cppcanvas.emf", "::cppcanvas::internal::ImplRenderer::ImplRenderer(mtf)" ); OSL_ENSURE( rCanvas.get() != NULL && rCanvas->getUNOCanvas().is(), @@ -2970,9 +2987,6 @@ namespace cppcanvas } /* EMF+ */ - memset (aObjects, 0, sizeof (aObjects)); - mbMultipart = false; - createActions( const_cast<GDIMetaFile&>(rMtf), // HACK(Q2): // we're // changing |