summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-04-01 20:21:48 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-04-01 20:22:02 +0200
commit25e5d697bca38e4ac8aa6a7a9030ffbf36682cac (patch)
tree03c48787557cd290deba5a8ab09083e6d247062c
parent85a499d50fe17ff19b43f5a69b9c809ace18401e (diff)
Prefer prefix ++/-- operators for non-primitive types
Change-Id: If5950affaff1537362b1e5c2e3791d04c5371306
-rw-r--r--vcl/source/gdi/pngwrite.cxx2
-rw-r--r--writerfilter/source/ooxml/OOXMLFastContextHandler.cxx7
-rw-r--r--xmloff/source/chart/SchXMLSeriesHelper.cxx5
-rw-r--r--xmloff/source/table/XMLTableExport.cxx4
4 files changed, 10 insertions, 8 deletions
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx
index 8d9a9929ba56..fcd4211c9675 100644
--- a/vcl/source/gdi/pngwrite.cxx
+++ b/vcl/source/gdi/pngwrite.cxx
@@ -258,7 +258,7 @@ sal_Bool PNGWriterImpl::Write( SvStream& rOStm )
if ( nDataSize )
rOStm.Write( &aBeg->aData[ 0 ], nDataSize );
rOStm << nCRC;
- aBeg++;
+ ++aBeg;
}
rOStm.SetNumberFormatInt( nOldMode );
return mbStatus;
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
index 5865846cd260..81ac2717b4a8 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
@@ -2256,14 +2256,13 @@ OOXMLFastContextHandlerWrapper::lcl_createFastChildContext
debug_logger->startElement("Wrapper-createChildContext");
debug_logger->attribute("token", fastTokenToId(Element));
- set<Id>::const_iterator aIt(mMyNamespaces.begin());
- while (aIt != mMyNamespaces.end())
+ const set<Id>::const_iterator aEnd(mMyNamespaces.end());
+ for (set<Id>::const_iterator aIt(mMyNamespaces.begin());
+ aIt != aEnd; ++aIt)
{
debug_logger->startElement("namespace");
debug_logger->attribute("id", fastTokenToId(*aIt));
debug_logger->endElement();
-
- aIt++;
}
debug_logger->endElement();
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 )
{