From 28acf83a9c07081d8a818f1dddb74b48d0188512 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 20 Oct 2018 19:06:08 +0100 Subject: pvs-studio: initialize maLockedRect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If95854af5072c9e693bec4011cdcd6c041dffdf3 Reviewed-on: https://gerrit.libreoffice.org/62094 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- canvas/source/directx/dx_surfacebitmap.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'canvas') diff --git a/canvas/source/directx/dx_surfacebitmap.cxx b/canvas/source/directx/dx_surfacebitmap.cxx index 2e4548677bc5..17f0a7bf9ddd 100644 --- a/canvas/source/directx/dx_surfacebitmap.cxx +++ b/canvas/source/directx/dx_surfacebitmap.cxx @@ -46,9 +46,10 @@ namespace dxcanvas { public: DXColorBuffer( const COMReference& rSurface, - const ::basegfx::B2IVector& rSize ) : - maSize(rSize), - mpSurface(rSurface) + const ::basegfx::B2IVector& rSize ) + : maSize(rSize) + , maLockedRect{} + , mpSurface(rSurface) { } @@ -110,9 +111,10 @@ namespace dxcanvas public: GDIColorBuffer( const BitmapSharedPtr& rSurface, - const ::basegfx::B2IVector& rSize ) : - maSize(rSize), - mpGDIPlusBitmap(rSurface) + const ::basegfx::B2IVector& rSize ) + : maSize(rSize) + , aBmpData{} + , mpGDIPlusBitmap(rSurface) { } -- cgit