From ae587c8f2892314da6c97a2e85b97845ede9b0e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 5 Apr 2024 08:51:57 +0100 Subject: [PATCH] cid#1596116 Uninitialized scalar field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6a4803ae079786880b5a8ff040f1215657604476 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165810 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- cui/source/inc/whatsnew.hxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cui/source/inc/whatsnew.hxx b/cui/source/inc/whatsnew.hxx index 76a3a2d4d63d..979fff919df2 100644 --- a/cui/source/inc/whatsnew.hxx +++ b/cui/source/inc/whatsnew.hxx @@ -20,14 +20,14 @@ class WhatsNewImg : public weld::CustomWidgetController virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override; public: - WhatsNewImg(){}; + WhatsNewImg() {} void Update(const OUString& sImage, const OUString& sText) { m_sImage = sImage; m_sText = sText; SetAccessibleName(m_sText); Invalidate(); - }; + } }; class WhatsNewProgress : public weld::CustomWidgetController @@ -37,13 +37,17 @@ class WhatsNewProgress : public weld::CustomWidgetController virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override; public: - WhatsNewProgress(){}; + WhatsNewProgress() + : m_nTotal(0) + , m_nCurrent(0) + { + } void Update(const sal_Int32 nCurrent, const sal_Int32 nTotal) { m_nTotal = nTotal; m_nCurrent = nCurrent; Invalidate(); - }; + } }; class WhatsNewDialog : public weld::GenericDialogController