diff options
Diffstat (limited to 'canvas/source/tools/surfaceproxy.cxx')
-rw-r--r-- | canvas/source/tools/surfaceproxy.cxx | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/canvas/source/tools/surfaceproxy.cxx b/canvas/source/tools/surfaceproxy.cxx index 1dfdd9c83d6f..e35ad4d490dc 100644 --- a/canvas/source/tools/surfaceproxy.cxx +++ b/canvas/source/tools/surfaceproxy.cxx @@ -22,7 +22,6 @@ #include <basegfx/polygon/b2dpolygoncutandtouch.hxx> #include <basegfx/polygon/b2dpolygontriangulator.hxx> #include <basegfx/polygon/b2dpolypolygontools.hxx> -#include <boost/bind.hpp> #include "surfaceproxy.hxx" @@ -90,9 +89,8 @@ namespace canvas void SurfaceProxy::setColorBufferDirty() { - ::std::for_each( maSurfaceList.begin(), - maSurfaceList.end(), - ::boost::mem_fn(&Surface::setColorBufferDirty)); + for( const auto& rSurfacePtr : maSurfaceList ) + rSurfacePtr->setColorBufferDirty(); } @@ -103,13 +101,8 @@ namespace canvas const ::basegfx::B2DPoint& rPos, const ::basegfx::B2DHomMatrix& rTransform ) { - ::std::for_each( maSurfaceList.begin(), - maSurfaceList.end(), - ::boost::bind( &Surface::draw, - _1, - fAlpha, - ::boost::cref(rPos), - ::boost::cref(rTransform))); + for( const auto& rSurfacePtr : maSurfaceList ) + rSurfacePtr->draw( fAlpha, rPos, rTransform ); return true; } @@ -123,14 +116,8 @@ namespace canvas const ::basegfx::B2DRange& rArea, const ::basegfx::B2DHomMatrix& rTransform ) { - ::std::for_each( maSurfaceList.begin(), - maSurfaceList.end(), - ::boost::bind(&Surface::drawRectangularArea, - _1, - fAlpha, - ::boost::cref(rPos), - ::boost::cref(rArea), - ::boost::cref(rTransform))); + for( const auto& rSurfacePtr : maSurfaceList ) + rSurfacePtr->drawRectangularArea( fAlpha, rPos, rArea, rTransform ); return true; } @@ -160,14 +147,8 @@ namespace canvas RTL_TEXTENCODING_ASCII_US).getStr() ); #endif - ::std::for_each( maSurfaceList.begin(), - maSurfaceList.end(), - ::boost::bind(&Surface::drawWithClip, - _1, - fAlpha, - ::boost::cref(rPos), - ::boost::cref(rTriangulatedPolygon), - ::boost::cref(rTransform))); + for( const auto& rSurfacePtr : maSurfaceList ) + rSurfacePtr->drawWithClip( fAlpha, rPos, rTriangulatedPolygon, rTransform ); return true; } |