diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-06 15:08:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-06 15:31:17 +0200 |
commit | 1888b37a83368f11540ab1ef200d25d3c91bee28 (patch) | |
tree | 70ef809634addb87f9231a80153348b3ed1f3ab6 /chart2/source/view/axes/VCartesianAxis.cxx | |
parent | 7b9b559035e515d06c19adcc5012c718782f9134 (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: I3f34115b7d73e71441404866fc45894f78ab28f6
Diffstat (limited to 'chart2/source/view/axes/VCartesianAxis.cxx')
-rw-r--r-- | chart2/source/view/axes/VCartesianAxis.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx index b7ddd0f1bce9..a8022b355812 100644 --- a/chart2/source/view/axes/VCartesianAxis.cxx +++ b/chart2/source/view/axes/VCartesianAxis.cxx @@ -1134,19 +1134,12 @@ void VCartesianAxis::get2DAxisMainLine( //m_aAxisProperties might get updated and changed here because // the label alignment and inner direction sign depends exactly of the choice of the axis line position which is made here in this method - double fMinX = m_pPosHelper->getLogicMinX(); - double fMinY = m_pPosHelper->getLogicMinY(); - double fMinZ = m_pPosHelper->getLogicMinZ(); - double fMaxX = m_pPosHelper->getLogicMaxX(); - double fMaxY = m_pPosHelper->getLogicMaxY(); - double fMaxZ = m_pPosHelper->getLogicMaxZ(); - - double fXStart = fMinX; - double fYStart = fMinY; - double fZStart = fMinZ; - double fXEnd = fXStart; - double fYEnd = fYStart; - double fZEnd = fZStart; + double const fMinX = m_pPosHelper->getLogicMinX(); + double const fMinY = m_pPosHelper->getLogicMinY(); + double const fMinZ = m_pPosHelper->getLogicMinZ(); + double const fMaxX = m_pPosHelper->getLogicMaxX(); + double const fMaxY = m_pPosHelper->getLogicMaxY(); + double const fMaxZ = m_pPosHelper->getLogicMaxZ(); double fXOnXPlane = fMinX; double fXOther = fMaxX; @@ -1184,6 +1177,13 @@ void VCartesianAxis::get2DAxisMainLine( fZOther = fMaxZ; } + double fXStart = fMinX; + double fYStart = fMinY; + double fZStart = fMinZ; + double fXEnd; + double fYEnd; + double fZEnd = fZStart; + if( 0==m_nDimensionIndex ) //x-axis { if( fCrossesOtherAxis < fMinY ) |