chart2/source/view/charttypes/BarChart.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
New commits: commit 18d112f4be4a36a00376d6e23b89e3d8d3c56060 Author: Zdibák Zoltán <[email protected]> AuthorDate: Sat Nov 10 13:14:21 2018 +0100 Commit: Julien Nabet <[email protected]> CommitDate: Sun Nov 11 09:22:04 2018 +0100 cppCheck redundantAssignment Change-Id: Ib9203fa65d7b9825b0a7181dcfc0f522bc575541 Reviewed-on: https://gerrit.libreoffice.org/63242 Tested-by: Jenkins Reviewed-by: Julien Nabet <[email protected]> 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(); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
