diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-20 19:06:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-21 22:02:40 +0200 |
commit | 28acf83a9c07081d8a818f1dddb74b48d0188512 (patch) | |
tree | 3338e4a55ff69ff7de2f00a8b9db6d4e568e0ab5 /canvas | |
parent | e473d49f5666382a8d5b696a00330a55c889f56e (diff) |
pvs-studio: initialize maLockedRect
Change-Id: If95854af5072c9e693bec4011cdcd6c041dffdf3
Reviewed-on: https://gerrit.libreoffice.org/62094
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/directx/dx_surfacebitmap.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
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<surface_type>& 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) { } |