[Libreoffice-commits] core.git: editeng/source filter/source sd/source svx/source sw/source toolkit/source vcl/generic vcl/headless
Julien Nabet
serval2412 at yahoo.fr
Thu Jun 13 13:12:02 PDT 2013
editeng/source/lookuptree/Trie.cxx | 6 +++---
filter/source/graphicfilter/eps/eps.cxx | 4 ++--
sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx | 2 +-
svx/source/sdr/overlay/overlaymanagerbuffered.cxx | 4 ++--
svx/source/svdraw/sdrpaintwindow.cxx | 2 +-
svx/source/svdraw/svdpntv.cxx | 2 +-
sw/source/core/view/viewsh.cxx | 2 +-
toolkit/source/awt/vclxregion.cxx | 2 +-
vcl/generic/print/genpspgraphics.cxx | 2 +-
vcl/headless/svpgdi.cxx | 4 ++--
10 files changed, 15 insertions(+), 15 deletions(-)
New commits:
commit f52a86b4592ccd441c76f7d26ecbce235dd59b7f
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Thu Jun 13 22:11:14 2013 +0200
cppcheck: fix several Prefer prefix ++/-- operators
Change-Id: Ie8ce0ebb9ec979575657a89ebbfe4d01142b04e5
diff --git a/editeng/source/lookuptree/Trie.cxx b/editeng/source/lookuptree/Trie.cxx
index 30ee0be..1b8eeb7 100644
--- a/editeng/source/lookuptree/Trie.cxx
+++ b/editeng/source/lookuptree/Trie.cxx
@@ -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)
diff --git a/filter/source/graphicfilter/eps/eps.cxx b/filter/source/graphicfilter/eps/eps.cxx
index 12a18e6..faea36f 100644
--- a/filter/source/graphicfilter/eps/eps.cxx
+++ b/filter/source/graphicfilter/eps/eps.cxx
@@ -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);
diff --git a/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx b/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
index 3575c24..d4bc2f1 100644
--- a/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
+++ b/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
@@ -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);
}
diff --git a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
index d502094..309fabe 100644
--- a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
+++ b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
@@ -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());
diff --git a/svx/source/svdraw/sdrpaintwindow.cxx b/svx/source/svdraw/sdrpaintwindow.cxx
index 9651ae7..a550c9e 100644
--- a/svx/source/svdraw/sdrpaintwindow.cxx
+++ b/svx/source/svdraw/sdrpaintwindow.cxx
@@ -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());
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 222b05c..ff437df 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -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);
}
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 5a26af2..19da338 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -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);
}
diff --git a/toolkit/source/awt/vclxregion.cxx b/toolkit/source/awt/vclxregion.cxx
index 2375bef..8764d4c 100644
--- a/toolkit/source/awt/vclxregion.cxx
+++ b/toolkit/source/awt/vclxregion.cxx
@@ -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);
}
diff --git a/vcl/generic/print/genpspgraphics.cxx b/vcl/generic/print/genpspgraphics.cxx
index b9a1164..b84ed32 100644
--- a/vcl/generic/print/genpspgraphics.cxx
+++ b/vcl/generic/print/genpspgraphics.cxx
@@ -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());
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 5fd68ec..e193ec2 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -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 ) )
{
More information about the Libreoffice-commits
mailing list