summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdibák Zoltán <zdibakzoltan@gmail.com>2018-11-10 13:14:21 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-11-11 09:22:04 +0100
commit18d112f4be4a36a00376d6e23b89e3d8d3c56060 (patch)
tree96598ec02435380ba34358cc4c8f523e8ea2cac0
parentde4ce7d5464102886588152171736e00e9900b0b (diff)
cppCheck redundantAssignment
Change-Id: Ib9203fa65d7b9825b0a7181dcfc0f522bc575541 Reviewed-on: https://gerrit.libreoffice.org/63242 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--chart2/source/view/charttypes/BarChart.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx
index 6c50ba35aeea..51dba0143bf2 100644
--- a/chart2/source/view/charttypes/BarChart.cxx
+++ b/chart2/source/view/charttypes/BarChart.cxx
@@ -550,12 +550,9 @@ void BarChart::createShapes()
double fSlotX=0;
for( auto& rXSlot : rZSlot )
{
- sal_Int32 nAttachedAxisIndex = 0;
- BarPositionHelper* pPosHelper = m_pMainPosHelper.get();
-
- nAttachedAxisIndex = rXSlot.getAttachedAxisIndexForFirstSeries();
+ sal_Int32 nAttachedAxisIndex = rXSlot.getAttachedAxisIndexForFirstSeries();
//2ND_AXIS_IN_BARS so far one can assume to have the same plotter for each z slot
- pPosHelper = dynamic_cast<BarPositionHelper*>(&( getPlottingPositionHelper( nAttachedAxisIndex ) ) );
+ BarPositionHelper* pPosHelper = dynamic_cast<BarPositionHelper*>(&( getPlottingPositionHelper( nAttachedAxisIndex ) ) );
if(!pPosHelper)
pPosHelper = m_pMainPosHelper.get();