summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-06-13 22:18:20 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-06-13 22:18:37 +0200
commit6934312f617ccd86d0467e38129c2e5d861241b5 (patch)
tree3d58a65c74354b4a44c17b47fda32695b9bc4c73 /vcl
parent8778882b8732454fac4a682e60a40ac2e3ad5c03 (diff)
cppcheck: fix all the others Prefer prefix ++/-- operators
Change-Id: I7956510a5faf1d659f88268941f8afce44e83560
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/bmpacc3.cxx4
-rw-r--r--vcl/source/gdi/outdev.cxx2
-rw-r--r--vcl/source/gdi/outdev2.cxx4
-rw-r--r--vcl/source/gdi/outmap.cxx8
-rw-r--r--vcl/source/gdi/region.cxx2
-rw-r--r--vcl/source/gdi/salgdilayout.cxx2
-rw-r--r--vcl/source/window/window.cxx4
-rw-r--r--vcl/unx/generic/gdi/salgdi.cxx2
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx2
-rw-r--r--vcl/win/source/gdi/salgdi.cxx2
10 files changed, 16 insertions, 16 deletions
diff --git a/vcl/source/gdi/bmpacc3.cxx b/vcl/source/gdi/bmpacc3.cxx
index c35f531c5433..8d327ae4baf9 100644
--- a/vcl/source/gdi/bmpacc3.cxx
+++ b/vcl/source/gdi/bmpacc3.cxx
@@ -262,7 +262,7 @@ void BitmapWriteAccess::FillPolygon( const Polygon& rPoly )
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(long nY = aRectIter->Top(), nEndY = aRectIter->Bottom(); nY <= nEndY; nY++)
{
@@ -323,7 +323,7 @@ void BitmapWriteAccess::FillPolyPolygon( const PolyPolygon& rPolyPoly )
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(long nY = aRectIter->Top(), nEndY = aRectIter->Bottom(); nY <= nEndY; nY++)
{
diff --git a/vcl/source/gdi/outdev.cxx b/vcl/source/gdi/outdev.cxx
index 090f22990a80..4c3f73a0543e 100644
--- a/vcl/source/gdi/outdev.cxx
+++ b/vcl/source/gdi/outdev.cxx
@@ -533,7 +533,7 @@ void OutputDevice::ImplReMirror( Region &rRegion ) const
rRegion.GetRegionRectangles(aRectangles);
Region aMirroredRegion;
- for(RectangleVector::iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
+ for(RectangleVector::iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
ImplReMirror(*aRectIter);
aMirroredRegion.Union(*aRectIter);
diff --git a/vcl/source/gdi/outdev2.cxx b/vcl/source/gdi/outdev2.cxx
index 915fb89aa122..cc610069a904 100644
--- a/vcl/source/gdi/outdev2.cxx
+++ b/vcl/source/gdi/outdev2.cxx
@@ -1963,7 +1963,7 @@ void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask
RectangleVector aRectangles;
aWorkRgn.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 Point aMapPt(pMapX[aRectIter->Left()], pMapY[aRectIter->Top()]);
const Size aMapSz(
@@ -2069,7 +2069,7 @@ void OutputDevice::ImplPrintMask( const Bitmap& rMask, const Color& rMaskColor,
RectangleVector aRectangles;
aWorkRgn.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 Point aMapPt(pMapX[aRectIter->Left()], pMapY[aRectIter->Top()]);
const Size aMapSz(
diff --git a/vcl/source/gdi/outmap.cxx b/vcl/source/gdi/outmap.cxx
index 7ef70f8b9411..6a10498a8ebd 100644
--- a/vcl/source/gdi/outmap.cxx
+++ b/vcl/source/gdi/outmap.cxx
@@ -1175,7 +1175,7 @@ Region OutputDevice::LogicToPixel( const Region& rLogicRegion ) const
const RectangleVector& rRectangles(aRectangles); // needed to make the '!=' work
// make reverse run to fill new region bottom-up, this will speed it up due to the used data structuring
- for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); aRectIter++)
+ for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); ++aRectIter)
{
aRegion.Union(LogicToPixel(*aRectIter));
}
@@ -1386,7 +1386,7 @@ Region OutputDevice::LogicToPixel( const Region& rLogicRegion, const MapMode& rM
const RectangleVector& rRectangles(aRectangles); // needed to make the '!=' work
// make reverse run to fill new region bottom-up, this will speed it up due to the used data structuring
- for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); aRectIter++)
+ for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); ++aRectIter)
{
aRegion.Union(LogicToPixel(*aRectIter, rMapMode));
}
@@ -1558,7 +1558,7 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion ) const
const RectangleVector& rRectangles(aRectangles); // needed to make the '!=' work
// make reverse run to fill new region bottom-up, this will speed it up due to the used data structuring
- for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); aRectIter++)
+ for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); ++aRectIter)
{
aRegion.Union(PixelToLogic(*aRectIter));
}
@@ -1773,7 +1773,7 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion, const MapMode& r
const RectangleVector& rRectangles(aRectangles); // needed to make the '!=' work
// make reverse run to fill new region bottom-up, this will speed it up due to the used data structuring
- for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); aRectIter++)
+ for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); ++aRectIter)
{
aRegion.Union(PixelToLogic(*aRectIter, rMapMode));
}
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index bf4a7c1f7d82..e715d0230ccb 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -298,7 +298,7 @@ PolyPolygon Region::ImplCreatePolyPolygonFromRegionBand() const
RectangleVector aRectangles;
GetRegionRectangles(aRectangles);
- for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
+ for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
aRetval.Insert(Polygon(*aRectIter));
}
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx
index 529346a7768d..269f71096dd6 100644
--- a/vcl/source/gdi/salgdilayout.cxx
+++ b/vcl/source/gdi/salgdilayout.cxx
@@ -246,7 +246,7 @@ void SalGraphics::mirror( Region& rRgn, const OutputDevice *pOutDev, bool bBack
rRgn.GetRegionRectangles(aRectangles);
rRgn.SetEmpty();
- for(RectangleVector::iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++)
+ for(RectangleVector::iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter)
{
mirror(*aRectIter, pOutDev, bBack);
rRgn.Union(*aRectIter);
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index b9d89429dade..9ad12cf1e126 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -1837,7 +1837,7 @@ sal_Bool Window::ImplSysObjClip( const Region* pOldRegion )
aRegion.GetRegionRectangles(aRectangles);
mpWindowImpl->mpSysObj->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)
{
mpWindowImpl->mpSysObj->UnionClipRegion(
aRectIter->Left(),
@@ -5948,7 +5948,7 @@ void Window::SetWindowRegionPixel( const Region& rRegion )
mpWindowImpl->maWinRegion.GetRegionRectangles(aRectangles);
mpWindowImpl->mpFrame->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)
{
mpWindowImpl->mpFrame->UnionClipRegion(
aRectIter->Left(),
diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx
index 18ca15ece773..e02434923ed2 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -561,7 +561,7 @@ bool X11SalGraphics::setClipRegion( const Region& i_rClip )
RectangleVector aRectangles;
i_rClip.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());
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index 8518ab32dcb5..1dc547863e4a 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -831,7 +831,7 @@ sal_Bool GtkSalGraphics::drawNativeControl( ControlType nType,
RectangleVector aRectangles;
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->IsEmpty())
{
diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx
index 59fde95c7054..4287f0b6d84e 100644
--- a/vcl/win/source/gdi/salgdi.cxx
+++ b/vcl/win/source/gdi/salgdi.cxx
@@ -902,7 +902,7 @@ bool WinSalGraphics::setClipRegion( const Region& i_rClip )
RECT* pNextClipRect = (RECT*)(&(mpClipRgnData->Buffer));
bool bFirstClipRect = true;
- 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());
const long nH(aRectIter->GetHeight());