From a16060116346533923c607bd406d3fea511b41ec Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 8 Apr 2012 01:01:31 +0200 Subject: Fix Prefer prefix ++/-- operators --- editeng/source/editeng/impedit3.cxx | 2 +- slideshow/source/engine/slideshowimpl.cxx | 2 +- xmlsecurity/source/helper/documentsignaturehelper.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index a380c08f4b5f..46cfe041d1b0 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -2349,7 +2349,7 @@ void ImpEditEngine::CreateTextPortions( ParaPortion* pParaPortion, sal_uInt16& r DBG_ASSERT( (nInvPos != aPositions.end()), "InvPos ?!" ); ::std::set< sal_uInt32 >::iterator i = nInvPos; - i++; + ++i; while ( i != aPositions.end() ) { TextPortion* pNew = new TextPortion( static_cast(*i++) - static_cast(*nInvPos++) ); diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx index ca91a6cd3424..77180192c1bc 100644 --- a/slideshow/source/engine/slideshowimpl.cxx +++ b/slideshow/source/engine/slideshowimpl.cxx @@ -902,7 +902,7 @@ PolygonMap::iterator SlideShowImpl::findPolygons( uno::Referencefirst == xDrawPage) bFound = true; else - aIter++; + ++aIter; } return aIter; diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx index 7523bf1f078a..8b10f0307b85 100644 --- a/xmlsecurity/source/helper/documentsignaturehelper.cxx +++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx @@ -374,7 +374,7 @@ bool DocumentSignatureHelper::checkIfAllFilesAreSigned( //find the file in the element list typedef ::std::vector< ::rtl::OUString >::const_iterator CIT; - for (CIT aIter = sElementList.begin(); aIter < sElementList.end(); aIter++) + for (CIT aIter = sElementList.begin(); aIter != sElementList.end(); ++aIter) { ::rtl::OUString sElementListURI = *aIter; if (alg == OOo2Document) -- cgit