cppcheck: Prefer prefix ++/-- operators for non-primitive types

Change-Id: If1bd91f28a96bd0eb53e4057e51db900f8b2c52b
This commit is contained in:
Julien Nabet
2013-07-29 22:04:37 +02:00
parent 2f527be551
commit 30eb11ea79
4 changed files with 5 additions and 5 deletions

View File

@@ -303,7 +303,7 @@ void GalleryThemePopup::ExecutePopup( Window *pWindow, const ::Point &aPos )
css::uno::Reference< css::util::XURLTransformer > xTransformer( css::uno::Reference< css::util::XURLTransformer > xTransformer(
mpBrowser->GetURLTransformer() ); mpBrowser->GetURLTransformer() );
for ( CommandInfoMap::iterator it = m_aCommandInfo.begin(); for ( CommandInfoMap::iterator it = m_aCommandInfo.begin();
it != m_aCommandInfo.end(); it++ ) it != m_aCommandInfo.end(); ++it )
{ {
try try
{ {

View File

@@ -163,13 +163,13 @@ public:
if(aIter->second) if(aIter->second)
{ {
aIter->second--; aIter->second--;
aIter++; ++aIter;
} }
else else
{ {
EntryMap::iterator aDelete(aIter); EntryMap::iterator aDelete(aIter);
WinSalBitmap* pSource = aDelete->first; WinSalBitmap* pSource = aDelete->first;
aIter++; ++aIter;
maEntries.erase(aDelete); maEntries.erase(aDelete);
if(maEntries.empty()) if(maEntries.empty())

View File

@@ -146,7 +146,7 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm)
{ {
// Step 1. Check whether all cells have fixed widths in the given row of table. // Step 1. Check whether all cells have fixed widths in the given row of table.
::std::vector< IntVectorPtr >::iterator itr; ::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); IntVectorPtr itrVal = (*itr);
for (std::vector<sal_Int32>::const_iterator aValIter = itrVal->begin(); aValIter != itrVal->end(); ++aValIter) for (std::vector<sal_Int32>::const_iterator aValIter = itrVal->begin(); aValIter != itrVal->end(); ++aValIter)

View File

@@ -866,7 +866,7 @@ void SchXMLSeries2Context::setStylesToRegressionCurves(
std::list< RegressionStyle >::iterator iStyle; std::list< RegressionStyle >::iterator iStyle;
// iterate over regession etc // 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 try
{ {