summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-13 18:59:32 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-13 22:08:38 +0100
commit49cc32842a039ab6b8e180df5b24ae8a5b1bd27b (patch)
tree9a5b83ec5915f963ec2ccef1ddb6bc76b726f1fe /sc
parent0b4510c060dc881fdc7d95379b06a02c413ae051 (diff)
cid#1585306 Uninitialized scalar field
Change-Id: I3fa54356865f7f0cf322745c254eeb0867e6f422 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162021 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/cctrl/tbzoomsliderctrl.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
index d14dd1cb08c0..31eb73b0a8e5 100644
--- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
+++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
@@ -216,11 +216,12 @@ void ScZoomSliderWnd::dispose()
ScZoomSlider::ScZoomSlider(css::uno::Reference< css::frame::XDispatchProvider> xDispatchProvider,
sal_uInt16 nCurrentZoom)
- : mnCurrentZoom( nCurrentZoom ),
- mnMinZoom( 10 ),
- mnMaxZoom( 400 ),
- mbOmitPaint( false ),
- m_xDispatchProvider(std::move(xDispatchProvider))
+ : mnSliderLength(0)
+ , mnCurrentZoom(nCurrentZoom)
+ , mnMinZoom(10)
+ , mnMaxZoom(400)
+ , mbOmitPaint(false)
+ , m_xDispatchProvider(std::move(xDispatchProvider))
{
maSliderButton = Image(StockImage::Yes, RID_SVXBMP_SLIDERBUTTON);
maIncreaseButton = Image(StockImage::Yes, RID_SVXBMP_SLIDERINCREASE);