diff options
author | himajin100000 <himajin100000@gmail.com> | 2018-03-29 02:34:18 +0900 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-31 11:01:26 +0200 |
commit | 15b7da00160ee65eceb816ff664c7bb46ffd69a2 (patch) | |
tree | edde1d8519da7c4bbc12c6004d32184247804a9d | |
parent | b19a6a5419cb69ca87b8c19d8921d707b5ab164f (diff) |
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@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | vcl/source/gdi/print2.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |