From 278ae5db852ba8715d4d1d5a1eaa38bdff5a7ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 1 May 2014 11:42:14 +0100 Subject: [PATCH] coverity#708673 Uninitialized pointer field Change-Id: I4aa47c46b609236c72e4a3e579876da7330b2024 --- vcl/generic/print/printerjob.cxx | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/vcl/generic/print/printerjob.cxx b/vcl/generic/print/printerjob.cxx index 48d996729e73..dc3b84675665 100644 --- a/vcl/generic/print/printerjob.cxx +++ b/vcl/generic/print/printerjob.cxx @@ -178,10 +178,24 @@ PrinterJob::GetCurrentPageBody () * public methods of PrinterJob: the actual job / spool handling */ -PrinterJob::PrinterJob () : - mpJobHeader( NULL ), - mpJobTrailer( NULL ), - m_bQuickJob( false ) +PrinterJob::PrinterJob () + : mnFileMode(0) + , mpJobHeader(NULL) + , mpJobTrailer(NULL) + , mnResolution(96) + , mnWidthPt(0) + , mnHeightPt(0) + , mnMaxWidthPt(0) + , mnMaxHeightPt(0) + , mnLandscapes(0) + , mnPortraits(0) + , mnLMarginPt(0) + , mnRMarginPt(0) + , mnTMarginPt(0) + , mnBMarginPt(0) + , mfXScale(1) + , mfYScale(1) + , m_bQuickJob(false) { }