summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-05 08:51:57 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-05 12:59:17 +0200
commitae587c8f2892314da6c97a2e85b97845ede9b0e6 (patch)
tree34bea45810fa0346d1f78066895a6d74f10ab1f9 /cui
parentdaa6df4633d67af025ea1000aaac20763da1a683 (diff)
cid#1596116 Uninitialized scalar field
Change-Id: I6a4803ae079786880b5a8ff040f1215657604476 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165810 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/inc/whatsnew.hxx12
1 files 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