cppcheck: fix several Prefer prefix ++/-- operators

Change-Id: Ie8ce0ebb9ec979575657a89ebbfe4d01142b04e5
This commit is contained in:
Julien Nabet 2013-06-13 22:11:14 +02:00
parent 1ff3ab9235
commit f52a86b459
10 changed files with 15 additions and 15 deletions

View File

@ -29,7 +29,7 @@ TrieNode::TrieNode(sal_Unicode aCharacter) :
TrieNode::~TrieNode()
{
vector<TrieNode*>::iterator iNode;
for(iNode = mChildren.begin(); iNode != mChildren.end(); iNode++)
for(iNode = mChildren.begin(); iNode != mChildren.end(); ++iNode)
{
delete *iNode;
}
@ -68,7 +68,7 @@ TrieNode* TrieNode::findChild(sal_Unicode aInputCharacter)
vector<TrieNode*>::iterator iNode;
for(iNode = mChildren.begin(); iNode != mChildren.end(); iNode++)
for(iNode = mChildren.begin(); iNode != mChildren.end(); ++iNode)
{
TrieNode* pCurrent = *iNode;
if ( pCurrent->mCharacter == aInputCharacter )
@ -96,7 +96,7 @@ void TrieNode::collectSuggestions(OUString sPath, vector<OUString>& rSuggestionL
// traverse nodes for other characters
vector<TrieNode*>::iterator iNode;
for(iNode = mChildren.begin(); iNode != mChildren.end(); iNode++)
for(iNode = mChildren.begin(); iNode != mChildren.end(); ++iNode)
{
TrieNode* pCurrent = *iNode;
if (pCurrent != NULL)

View File

@ -1652,7 +1652,7 @@ void PSWriter::ImplSetClipRegion( Region& rClipRegion )
RectangleVector aRectangles;
rClipRegion.GetRegionRectangles(aRectangles);
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
double nX1(aRectIter->Left());
double nY1(aRectIter->Top());
@ -1781,7 +1781,7 @@ void PSWriter::ImplBmp( Bitmap* pBitmap, Bitmap* pMaskBitmap, const Point & rPoi
aRegion.GetRegionRectangles(aRectangles);
const long nMoveVertical(nHeightLeft - nHeightOrg);
for(RectangleVector::iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
aRectIter->Move(0, nMoveVertical);

View File

@ -88,7 +88,7 @@ void ForAllRectangles (const Region& rRegion, ::boost::function<void(const Recta
}
else
{
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
aFunction(*aRectIter);
}

View File

@ -120,7 +120,7 @@ namespace sdr
RectangleVector aRectangles;
rRegionPixel.GetRegionRectangles(aRectangles);
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
#ifdef DBG_UTIL
// #i72754# possible graphical region test only with non-pro
@ -215,7 +215,7 @@ namespace sdr
RectangleVector aRectangles;
aRegion.GetRegionRectangles(aRectangles);
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
// for each rectangle, save the area
const Point aTopLeft(aRectIter->TopLeft());

View File

@ -69,7 +69,7 @@ void SdrPreRenderDevice::OutputPreRenderDevice(const Region& rExpandedRegion)
RectangleVector aRectangles;
aRegionPixel.GetRegionRectangles(aRectangles);
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
// for each rectangle, copy the area
const Point aTopLeft(aRectIter->TopLeft());

View File

@ -626,7 +626,7 @@ void SdrPaintView::CompleteRedraw(OutputDevice* pOut, const Region& rReg, sdr::c
pWindow->SetLineColor(COL_LIGHTGREEN);
pWindow->SetFillColor();
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
pWindow->DrawRect(*aRectIter);
}

View File

@ -1731,7 +1731,7 @@ void ViewShell::Paint(const Rectangle &rRect)
RectangleVector aRectangles;
aRegion.GetRegionRectangles(aRectangles);
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
Imp()->AddPaintRect(*aRectIter);
}

View File

@ -148,7 +148,7 @@ void VCLXRegion::xOrRegion( const ::com::sun::star::uno::Reference< ::com::sun::
::com::sun::star::uno::Sequence< ::com::sun::star::awt::Rectangle > aRects(aRectangles.size());
sal_uInt32 a(0);
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
aRects.getArray()[a++] = AWTRectangle(*aRectIter);
}

View File

@ -325,7 +325,7 @@ bool GenPspGraphics::setClipRegion( const Region& i_rClip )
i_rClip.GetRegionRectangles(aRectangles);
m_pPrinterGfx->BeginSetClipRegion(aRectangles.size());
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
const long nW(aRectIter->GetWidth());

View File

@ -167,7 +167,7 @@ void SvpSalGraphics::ensureClip()
RectangleVector aRectangles;
m_aClipRegion.GetRegionRectangles(aRectangles);
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
const long nW(aRectIter->GetWidth());
if(nW)
@ -224,7 +224,7 @@ bool SvpSalGraphics::isClippedSetup( const basegfx::B2IBox &aRange, SvpSalGraphi
Rectangle aHitRect;
RectangleVector aRectangles;
m_aClipRegion.GetRegionRectangles(aRectangles);
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
if( aRectIter->IsOver( aRect ) )
{