summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-02-24 22:39:02 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-03-01 06:15:58 +0100
commitf6a42d648e4786ddfcdb9c1f1636a2dea9bceb5f (patch)
tree6837111b6db5cbdbaf749586f23927d483103b51 /sw
parentb86bdab9916e18c7b4c024882535f64129cd4a68 (diff)
Use more proper integer types and range-for loops
Change-Id: Iea85454339b79bd65bdd0f340bd86359370cd5f6
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/notxtfrm.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index 3b86993ec09b..4c6537ead5b1 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -117,7 +117,7 @@ static void lcl_PaintReplacement( const SwRect &rRect, const OUString &rText,
if ( rURL.GetMap() )
{
ImageMap *pMap = (ImageMap*)rURL.GetMap();
- for( sal_uInt16 i = 0; i < pMap->GetIMapObjectCount(); i++ )
+ for( size_t i = 0; i < pMap->GetIMapObjectCount(); ++i )
{
IMapObject *pObj = pMap->GetIMapObject( i );
if( rSh.GetDoc()->IsVisitedURL( pObj->GetURL() ) )
@@ -190,9 +190,9 @@ static void lcl_ClearArea( const SwFrm &rFrm,
if(!bDone)
{
- for( sal_uInt16 i = 0; i < aRegion.size(); ++i )
+ for( const auto &rRegion : aRegion )
{
- ::DrawGraphic( pItem, &rOut, aOrigRect, aRegion[i] );
+ ::DrawGraphic( pItem, &rOut, aOrigRect, rRegion );
}
}
}
@@ -201,8 +201,8 @@ static void lcl_ClearArea( const SwFrm &rFrm,
rOut.Push( PushFlags::FILLCOLOR|PushFlags::LINECOLOR );
rOut.SetFillColor( rFrm.getRootFrm()->GetCurrShell()->Imp()->GetRetoucheColor());
rOut.SetLineColor();
- for( sal_uInt16 i = 0; i < aRegion.size(); ++i )
- rOut.DrawRect( aRegion[i].SVRect() );
+ for( const auto &rRegion : aRegion )
+ rOut.DrawRect( rRegion.SVRect() );
rOut.Pop();
}
}