summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorZdibák Zoltán <zdibakzoltan@gmail.com>2018-11-10 22:33:21 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-11-11 11:16:55 +0100
commit8a5a56ebfef298241daf598d7c417aef466e3ec7 (patch)
treed4862c8bf8a3713ffc640bb584d0a0613780b768 /chart2
parent18f9abffadec8337561bef16b006e2968f224538 (diff)
cppCheck redundantAssignment variable bUseCustomLabel
Change-Id: Ic900d5116fd1cf5a90526078c6e4802f09589aa7 Reviewed-on: https://gerrit.libreoffice.org/63253 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/VSeriesPlotter.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index ed5db9e6555d..b61a195bec97 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -510,10 +510,9 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re
sal_Int32 nLineCountForSymbolsize = 0;
sal_uInt32 nTextListLength = 3;
sal_uInt32 nCustomLabelsCount = aCustomLabels.getLength();
- bool bUseCustomLabel = false;
Sequence< OUString > aTextList( nTextListLength );
- bUseCustomLabel = nCustomLabelsCount > 0;
+ bool bUseCustomLabel = nCustomLabelsCount > 0;
if( bUseCustomLabel )
{
nTextListLength = ( nCustomLabelsCount > 3 ) ? nCustomLabelsCount : 3;