From ac407ab285b69f67e0e82bc10ea4abdbe8f9c08f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 2 Dec 2020 13:04:27 +0000 Subject: cid#1470369 Uninitialized scalar variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and cid#1470372 Uninitialized scalar variable cid#1470364 Uninitialized scalar variable cid#1470363 Uninitialized scalar variable cid#1470359 Uninitialized scalar variable cid#1470357 Uninitialized scalar variable cid#1470355 Uninitialized scalar variable cid#1470354 Uninitialized scalar variable cid#1470353 Uninitialized scalar variable Change-Id: I4a28f0f375f9108f4c43da7074f85d1fdbb3ebff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107070 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara (cherry picked from commit 2a988b1ecddd17f9c851b625d33fbe0c4dfa2325) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118594 Tested-by: Jenkins Reviewed-by: Michael Stahl --- include/vcl/outdevmap.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/vcl/outdevmap.hxx b/include/vcl/outdevmap.hxx index d4ef27e94e91..467dd688c612 100644 --- a/include/vcl/outdevmap.hxx +++ b/include/vcl/outdevmap.hxx @@ -28,6 +28,16 @@ struct ImplMapRes tools::Long mnMapScNumY; // Scaling factor - numerator in Y direction tools::Long mnMapScDenomX; // Scaling factor - denominator in X direction tools::Long mnMapScDenomY; // Scaling factor - denominator in Y direction + + ImplMapRes() + : mnMapOfsX(0) + , mnMapOfsY(0) + , mnMapScNumX(1) + , mnMapScNumY(1) + , mnMapScDenomX(1) + , mnMapScDenomY(1) + { + } }; #endif // INCLUDED_VCL_OUTDEVMAP_HXX -- cgit