forked from amazingfate/loongoffice
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>
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user