summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-08 20:47:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-09 10:33:59 +0100
commitcc0e9a37de8bceeb224b03a5bb1827b087e3e7b5 (patch)
tree8d24abeda6b70096c7f96107b681a81fe6378418 /chart2
parent0eb52534de536fbe33585c91f4f173653b184e24 (diff)
cppcheck: variableScope
Change-Id: If0c56c89e2722d47a401363f3854331229856490
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/axes/VCartesianAxis.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx
index c8ae9e095be7..90f5880165cd 100644
--- a/chart2/source/view/axes/VCartesianAxis.cxx
+++ b/chart2/source/view/axes/VCartesianAxis.cxx
@@ -713,13 +713,12 @@ bool VCartesianAxis::createTextShapes(
const TickInfo* pPreviousVisibleTickInfo = NULL;
const TickInfo* pPREPreviousVisibleTickInfo = NULL;
- const TickInfo* pLastVisibleNeighbourTickInfo = NULL;
sal_Int32 nTick = 0;
for( TickInfo* pTickInfo = rTickIter.firstInfo()
; pTickInfo
; pTickInfo = rTickIter.nextInfo(), nTick++ )
{
- pLastVisibleNeighbourTickInfo = bIsStaggered ?
+ const TickInfo* pLastVisibleNeighbourTickInfo = bIsStaggered ?
pPREPreviousVisibleTickInfo : pPreviousVisibleTickInfo;
//don't create labels which does not fit into the rhythm
@@ -909,13 +908,12 @@ bool VCartesianAxis::createTextShapesSimple(
uno::Any* pLimitedSpaceAny = PropertyMapper::getValuePointerForLimitedSpace(aPropValues,aPropNames,bLimitedHeight);
const TickInfo* pPreviousVisibleTickInfo = NULL;
- const TickInfo* pLastVisibleNeighbourTickInfo = NULL;
sal_Int32 nTick = 0;
for( TickInfo* pTickInfo = rTickIter.firstInfo()
; pTickInfo
; pTickInfo = rTickIter.nextInfo(), nTick++ )
{
- pLastVisibleNeighbourTickInfo = pPreviousVisibleTickInfo;
+ const TickInfo* pLastVisibleNeighbourTickInfo = pPreviousVisibleTickInfo;
//don't create labels which does not fit into the rhythm
if( nTick%rAxisLabelProperties.nRhythm != 0 )