Kaydet (Commit) 18d112f4 authored tarafından Zdibák Zoltán's avatar Zdibák Zoltán Kaydeden (comit) Julien Nabet

cppCheck redundantAssignment

Change-Id: Ib9203fa65d7b9825b0a7181dcfc0f522bc575541
Reviewed-on: https://gerrit.libreoffice.org/63242
Tested-by: Jenkins
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst de4ce7d5
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment