diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-04-01 20:21:48 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-04-01 20:22:02 +0200 |
commit | 25e5d697bca38e4ac8aa6a7a9030ffbf36682cac (patch) | |
tree | 03c48787557cd290deba5a8ab09083e6d247062c /xmloff | |
parent | 85a499d50fe17ff19b43f5a69b9c809ace18401e (diff) |
Prefer prefix ++/-- operators for non-primitive types
Change-Id: If5950affaff1537362b1e5c2e3791d04c5371306
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLSeriesHelper.cxx | 5 | ||||
-rw-r--r-- | xmloff/source/table/XMLTableExport.cxx | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/xmloff/source/chart/SchXMLSeriesHelper.cxx b/xmloff/source/chart/SchXMLSeriesHelper.cxx index c50ac86ece5f..b6b7a6656721 100644 --- a/xmloff/source/chart/SchXMLSeriesHelper.cxx +++ b/xmloff/source/chart/SchXMLSeriesHelper.cxx @@ -83,9 +83,10 @@ using ::com::sun::star::uno::Sequence; sal_Int32 nIndex=0; ::std::vector< Reference< chart2::XDataSeries > > aSeriesVector( SchXMLSeriesHelper::getDataSeriesFromDiagram( xDiagram )); + const ::std::vector< Reference< chart2::XDataSeries > >::const_iterator aSeriesEnd( aSeriesVector.end() ); for( ::std::vector< Reference< chart2::XDataSeries > >::const_iterator aSeriesIt( aSeriesVector.begin() ) - ; aSeriesIt != aSeriesVector.end() - ; aSeriesIt++, nIndex++ ) + ; aSeriesIt != aSeriesEnd + ; ++aSeriesIt, nIndex++ ) { Reference< chart2::XDataSeries > xSeries( *aSeriesIt ); if( xSeries.is() ) diff --git a/xmloff/source/table/XMLTableExport.cxx b/xmloff/source/table/XMLTableExport.cxx index b06df84c1dd8..5be12e5a9a4f 100644 --- a/xmloff/source/table/XMLTableExport.cxx +++ b/xmloff/source/table/XMLTableExport.cxx @@ -120,7 +120,9 @@ void StringStatisticHelper::add( const OUString& rStyleName ) sal_Int32 StringStatisticHelper::getModeString( OUString& rStyleName ) { sal_Int32 nMax = 0; - for( std::map< OUString, sal_Int32 >::iterator iter( begin() ); iter != end(); iter++ ) + const std::map< OUString, sal_Int32 >::const_iterator aEnd( end() ); + for( std::map< OUString, sal_Int32 >::iterator iter( begin() ); + iter != aEnd; ++iter) { if( (*iter).second > nMax ) { |