diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-05-05 23:32:12 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-05-05 23:33:14 +0200 |
commit | 69211a3aa531c1fa26c689ed48ad614b1e11405f (patch) | |
tree | 1d293562997331069601f97cd164de291bd6a9fd /chart2/source/view/axes | |
parent | 7664f5012bb8d8e167f7a0f8760709258af074c7 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'chart2/source/view/axes')
-rw-r--r-- | chart2/source/view/axes/Tickmarks.cxx | 4 | ||||
-rw-r--r-- | chart2/source/view/axes/VAxisBase.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/axes/VCartesianAxis.cxx | 4 | ||||
-rw-r--r-- | chart2/source/view/axes/VCartesianGrid.cxx | 4 | ||||
-rw-r--r-- | chart2/source/view/axes/VPolarGrid.cxx | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/chart2/source/view/axes/Tickmarks.cxx b/chart2/source/view/axes/Tickmarks.cxx index 834fe66eb97b..ded69433b509 100644 --- a/chart2/source/view/axes/Tickmarks.cxx +++ b/chart2/source/view/axes/Tickmarks.cxx @@ -93,7 +93,7 @@ TickInfo* PureTickIter::nextInfo() { if(m_aTickIter!=m_rTickVector.end()) { - m_aTickIter++; + ++m_aTickIter; if(m_aTickIter!=m_rTickVector.end()) return &*m_aTickIter; } @@ -319,7 +319,7 @@ void TickFactory_2D::updateScreenValues( ::std::vector< ::std::vector< TickInfo { ::std::vector< TickInfo >::iterator aTickIter = (*aDepthIter).begin(); const ::std::vector< TickInfo >::const_iterator aTickEnd = (*aDepthIter).end(); - for( ; aTickIter != aTickEnd; aTickIter++ ) + for( ; aTickIter != aTickEnd; ++aTickIter ) { TickInfo& rTickInfo = (*aTickIter); rTickInfo.aTickScreenPosition = diff --git a/chart2/source/view/axes/VAxisBase.cxx b/chart2/source/view/axes/VAxisBase.cxx index e662634e939d..62d2a9353d7c 100644 --- a/chart2/source/view/axes/VAxisBase.cxx +++ b/chart2/source/view/axes/VAxisBase.cxx @@ -235,7 +235,7 @@ void VAxisBase::removeTextShapesFromTicks() { ::std::vector< TickInfo >::iterator aTickIter = (*aDepthIter).begin(); const ::std::vector< TickInfo >::const_iterator aTickEnd = (*aDepthIter).end(); - for( ; aTickIter != aTickEnd; aTickIter++ ) + for( ; aTickIter != aTickEnd; ++aTickIter ) { TickInfo& rTickInfo = (*aTickIter); if(rTickInfo.xTextShape.is()) diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx index 5451f5cbb9ab..111982dbf2d2 100644 --- a/chart2/source/view/axes/VCartesianAxis.cxx +++ b/chart2/source/view/axes/VCartesianAxis.cxx @@ -1487,7 +1487,7 @@ void VCartesianAxis::updatePositions() { ::std::vector< TickInfo >::iterator aTickIter = aDepthIter->begin(); const ::std::vector< TickInfo >::const_iterator aTickEnd = aDepthIter->end(); - for( ; aTickIter != aTickEnd; aTickIter++ ) + for( ; aTickIter != aTickEnd; ++aTickIter ) { TickInfo& rTickInfo = (*aTickIter); Reference< drawing::XShape > xShape2DText( rTickInfo.xTextShape ); @@ -1541,7 +1541,7 @@ void VCartesianAxis::createTickMarkLineShapes( ::std::vector< TickInfo >& rTickI ::std::vector< TickInfo >::const_iterator aTickIter = rTickInfos.begin(); const ::std::vector< TickInfo >::const_iterator aTickEnd = rTickInfos.end(); sal_Int32 nN = 0; - for( ; aTickIter != aTickEnd; aTickIter++ ) + for( ; aTickIter != aTickEnd; ++aTickIter ) { if( !(*aTickIter).bPaintIt ) continue; diff --git a/chart2/source/view/axes/VCartesianGrid.cxx b/chart2/source/view/axes/VCartesianGrid.cxx index e0aca77d9ba9..bbd95df1a307 100644 --- a/chart2/source/view/axes/VCartesianGrid.cxx +++ b/chart2/source/view/axes/VCartesianGrid.cxx @@ -274,7 +274,7 @@ void VCartesianGrid::createShapes() ::std::vector< TickInfo >::const_iterator aTickIter = (*aDepthIter).begin(); const ::std::vector< TickInfo >::const_iterator aTickEnd = (*aDepthIter).end(); sal_Int32 nRealPointCount = 0; - for( ; aTickIter != aTickEnd; aTickIter++ ) + for( ; aTickIter != aTickEnd; ++aTickIter ) { if( !(*aTickIter).bPaintIt ) continue; @@ -314,7 +314,7 @@ void VCartesianGrid::createShapes() const ::std::vector< TickInfo >::const_iterator aTickEnd = (*aDepthIter).end(); sal_Int32 nRealPointCount = 0; sal_Int32 nPolyIndex = 0; - for( ; aTickIter != aTickEnd; aTickIter++, nPolyIndex++ ) + for( ; aTickIter != aTickEnd; ++aTickIter, ++nPolyIndex ) { if( !(*aTickIter).bPaintIt ) continue; diff --git a/chart2/source/view/axes/VPolarGrid.cxx b/chart2/source/view/axes/VPolarGrid.cxx index 7c8a26d75857..b2801e31cd6d 100644 --- a/chart2/source/view/axes/VPolarGrid.cxx +++ b/chart2/source/view/axes/VPolarGrid.cxx @@ -148,7 +148,7 @@ void VPolarGrid::create2DAngleGrid( const Reference< drawing::XShapes >& xLogicT drawing::PointSequenceSequence aAllPoints; ::std::vector< TickInfo >::iterator aTickIter = (*aDepthIter).begin(); const ::std::vector< TickInfo >::const_iterator aTickEnd = (*aDepthIter).end(); - for( ; aTickIter != aTickEnd; aTickIter++ ) + for( ; aTickIter != aTickEnd; ++aTickIter ) { TickInfo& rTickInfo = *aTickIter; if( !rTickInfo.bPaintIt ) @@ -215,7 +215,7 @@ void VPolarGrid::create2DRadiusGrid( const Reference< drawing::XShapes >& xLogic drawing::PointSequenceSequence aAllPoints; ::std::vector< TickInfo >::iterator aTickIter = (*aDepthIter).begin(); const ::std::vector< TickInfo >::const_iterator aTickEnd = (*aDepthIter).end(); - for( ; aTickIter != aTickEnd; aTickIter++ ) + for( ; aTickIter != aTickEnd; ++aTickIter ) { TickInfo& rTickInfo = *aTickIter; if( !rTickInfo.bPaintIt ) |