diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-01-11 11:00:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-01-12 11:41:23 +0100 |
commit | b606d484a696faef7c7caa1bcc6afab8f514c7a0 (patch) | |
tree | 15abd3c62545a9c0497017b4502719ca179ab9a0 | |
parent | c768e8afcc42d6f5b00483f24f9bed662a4c2878 (diff) |
-Werror=maybe-uninitialized
...in code introduced with 00140e3df4a22e75261de3af18c6c0fc3f5fc92c "lok: send
chart line width updates". Falling back to zero is in line with the preceding,
similar
sal_uInt16 nLineTransparence = 0;
...
block (introduced with 3dc00a8de9f9f1b1ad0c60134391638544cdd143 "handle line
dash in chart line panel"), but using o3tl::doAccess or o3tl::forceAccess might
be more appropriate.
Change-Id: I8c2286b386aa9052d1d2af0f9f25847829ca4df5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109081
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | chart2/source/controller/sidebar/ChartLinePanel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/sidebar/ChartLinePanel.cxx b/chart2/source/controller/sidebar/ChartLinePanel.cxx index 019b022bd1a3..9a54f913dca9 100644 --- a/chart2/source/controller/sidebar/ChartLinePanel.cxx +++ b/chart2/source/controller/sidebar/ChartLinePanel.cxx @@ -193,7 +193,7 @@ void ChartLinePanel::updateData() XLineTransparenceItem aLineTransparenceItem(nLineTransparence); updateLineTransparence(false, true, &aLineTransparenceItem); - sal_uInt32 nWidth; + sal_uInt32 nWidth = 0; xPropSet->getPropertyValue("LineWidth") >>= nWidth; XLineWidthItem aWidthItem(nWidth); updateLineWidth(false, true, &aWidthItem); |