summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-07-29 22:04:37 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-07-29 22:04:52 +0200
commit30eb11ea79db4f7fc0741b080e1e9d54a03a79c2 (patch)
treedde862f9e4ef1e09c2f70ede6d0e429bf38c49ce
parent2f527be5513159c0aebd93f356cbd2b1dc04b253 (diff)
cppcheck: Prefer prefix ++/-- operators for non-primitive types
Change-Id: If1bd91f28a96bd0eb53e4057e51db900f8b2c52b
-rw-r--r--svx/source/gallery2/galbrws2.cxx2
-rw-r--r--vcl/win/source/gdi/salbmp.cxx4
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableManager.cxx2
-rw-r--r--xmloff/source/chart/SchXMLSeries2Context.cxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index 46d3d5ea2f4a..7ac642535826 100644
--- a/svx/source/gallery2/galbrws2.cxx
+++ b/svx/source/gallery2/galbrws2.cxx
@@ -303,7 +303,7 @@ void GalleryThemePopup::ExecutePopup( Window *pWindow, const ::Point &aPos )
css::uno::Reference< css::util::XURLTransformer > xTransformer(
mpBrowser->GetURLTransformer() );
for ( CommandInfoMap::iterator it = m_aCommandInfo.begin();
- it != m_aCommandInfo.end(); it++ )
+ it != m_aCommandInfo.end(); ++it )
{
try
{
diff --git a/vcl/win/source/gdi/salbmp.cxx b/vcl/win/source/gdi/salbmp.cxx
index 5bec9899139e..98e908a07ca4 100644
--- a/vcl/win/source/gdi/salbmp.cxx
+++ b/vcl/win/source/gdi/salbmp.cxx
@@ -163,13 +163,13 @@ public:
if(aIter->second)
{
aIter->second--;
- aIter++;
+ ++aIter;
}
else
{
EntryMap::iterator aDelete(aIter);
WinSalBitmap* pSource = aDelete->first;
- aIter++;
+ ++aIter;
maEntries.erase(aDelete);
if(maEntries.empty())
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
index c5c9ce0ff1e6..5925725931e2 100644
--- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
@@ -146,7 +146,7 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm)
{
// Step 1. Check whether all cells have fixed widths in the given row of table.
::std::vector< IntVectorPtr >::iterator itr;
- for (itr = m_aCellWidths.begin(); itr != m_aCellWidths.end(); itr ++)
+ for (itr = m_aCellWidths.begin(); itr != m_aCellWidths.end(); ++itr )
{
IntVectorPtr itrVal = (*itr);
for (std::vector<sal_Int32>::const_iterator aValIter = itrVal->begin(); aValIter != itrVal->end(); ++aValIter)
diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx
index a955d321b013..16635727bc15 100644
--- a/xmloff/source/chart/SchXMLSeries2Context.cxx
+++ b/xmloff/source/chart/SchXMLSeries2Context.cxx
@@ -866,7 +866,7 @@ void SchXMLSeries2Context::setStylesToRegressionCurves(
std::list< RegressionStyle >::iterator iStyle;
// iterate over regession etc
- for( iStyle = rSeriesDefaultsAndStyles.maRegressionStyleList.begin(); iStyle != rSeriesDefaultsAndStyles.maRegressionStyleList.end(); iStyle++ )
+ for( iStyle = rSeriesDefaultsAndStyles.maRegressionStyleList.begin(); iStyle != rSeriesDefaultsAndStyles.maRegressionStyleList.end(); ++iStyle )
{
try
{