[Libreoffice-commits] core.git: vcl/source
himajin100000
himajin100000 at gmail.com
Sat Mar 31 09:01:49 UTC 2018
vcl/source/gdi/print2.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 15b7da00160ee65eceb816ff664c7bb46ffd69a2
Author: himajin100000 <himajin100000 at gmail.com>
Date: Thu Mar 29 02:34:18 2018 +0900
fix for for-range loops should come to #ifdef DEBUG too
Change-Id: Ib1b317e2564080e367d8d1fa0245c1707b141e57
Reviewed-on: https://gerrit.libreoffice.org/52163
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx
index bb54e2be1821..8bccc523ad9c 100644
--- a/vcl/source/gdi/print2.cxx
+++ b/vcl/source/gdi/print2.cxx
@@ -1314,14 +1314,14 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
#if OSL_DEBUG_LEVEL > 1
// iterate over all aCCList members and generate rectangles for the bounding boxes
rOutMtf.AddAction( new MetaFillColorAction( COL_WHITE, false ) );
- for( aCurr = aCCList.begin(); aCurr != aLast; ++aCurr )
+ for(auto const& aCurr:aCCList)
{
- if( aCurr->bIsSpecial )
+ if( aCurr.bIsSpecial )
rOutMtf.AddAction( new MetaLineColorAction( COL_RED, true) );
else
rOutMtf.AddAction( new MetaLineColorAction( COL_BLUE, true) );
- rOutMtf.AddAction( new MetaRectAction( aMapModeVDev->PixelToLogic( aCurr->aBounds ) ) );
+ rOutMtf.AddAction( new MetaRectAction( aMapModeVDev->PixelToLogic( aCurr.aBounds ) ) );
}
#endif
}
More information about the Libreoffice-commits
mailing list