[Libreoffice-commits] core.git: vcl/source vcl/unx vcl/win

Julien Nabet serval2412 at yahoo.fr
Thu Jun 13 13:19:02 PDT 2013


 vcl/source/gdi/bmpacc3.cxx               |    4 ++--
 vcl/source/gdi/outdev.cxx                |    2 +-
 vcl/source/gdi/outdev2.cxx               |    4 ++--
 vcl/source/gdi/outmap.cxx                |    8 ++++----
 vcl/source/gdi/region.cxx                |    2 +-
 vcl/source/gdi/salgdilayout.cxx          |    2 +-
 vcl/source/window/window.cxx             |    4 ++--
 vcl/unx/generic/gdi/salgdi.cxx           |    2 +-
 vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx |    2 +-
 vcl/win/source/gdi/salgdi.cxx            |    2 +-
 10 files changed, 16 insertions(+), 16 deletions(-)

New commits:
commit 6934312f617ccd86d0467e38129c2e5d861241b5
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Thu Jun 13 22:18:20 2013 +0200

    cppcheck: fix all the others Prefer prefix ++/-- operators
    
    Change-Id: I7956510a5faf1d659f88268941f8afce44e83560

diff --git a/vcl/source/gdi/bmpacc3.cxx b/vcl/source/gdi/bmpacc3.cxx
index c35f531..8d327ae 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 090f229..4c3f73a 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 915fb89..cc61006 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 7ef70f8..6a10498 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 bf4a7c1..e715d02 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 529346a..269f710 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 b9d8942..9ad12cf 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 18ca15e..e024349 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 8518ab3..1dc5478 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 59fde95..4287f0b 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());


More information about the Libreoffice-commits mailing list