diff options
author | Mario J. Rugiero <mrugiero@gmail.com> | 2015-10-31 14:48:30 -0300 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-01 11:28:33 +0000 |
commit | 1bd101d91d12e310ecfd27d86c4c81fdec8886a6 (patch) | |
tree | 238b2be684af773701440445f4743729de70632a /canvas | |
parent | 76e75d2dd6dafe55fd1740693529640652ed6455 (diff) |
boost::bind -> lambdas in canvas/source/tools/surface.cxx
Change-Id: I9a9c4832cf18b10e15d2a4de8944b404b082e990
Reviewed-on: https://gerrit.libreoffice.org/19710
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/tools/surface.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/canvas/source/tools/surface.cxx b/canvas/source/tools/surface.cxx index 3ec52b6b5c92..8cd5e93a41ba 100644 --- a/canvas/source/tools/surface.cxx +++ b/canvas/source/tools/surface.cxx @@ -21,7 +21,6 @@ #include <basegfx/matrix/b2dhommatrixtools.hxx> #include <basegfx/polygon/b2dpolygonclipper.hxx> -#include <boost/bind.hpp> #include <comphelper/scopeguard.hxx> #include "surface.hxx" @@ -163,8 +162,7 @@ namespace canvas // issue an endPrimitive() when leaving the scope const ::comphelper::ScopeGuard aScopeGuard( - boost::bind( &::canvas::IRenderModule::endPrimitive, - ::boost::ref(pRenderModule) ) ); + [&pRenderModule]() mutable { pRenderModule->endPrimitive(); } ); vertex.u=static_cast<float>(u2); vertex.v=static_cast<float>(v2); vertex.x=static_cast<float>(p0.getX()); vertex.y=static_cast<float>(p0.getY()); @@ -285,8 +283,7 @@ namespace canvas // issue an endPrimitive() when leaving the scope const ::comphelper::ScopeGuard aScopeGuard( - boost::bind( &::canvas::IRenderModule::endPrimitive, - ::boost::ref(pRenderModule) ) ); + [&pRenderModule]() mutable { pRenderModule->endPrimitive(); } ); vertex.u=static_cast<float>(u2); vertex.v=static_cast<float>(v2); vertex.x=static_cast<float>(p0.getX()); vertex.y=static_cast<float>(p0.getY()); @@ -392,8 +389,7 @@ namespace canvas // issue an endPrimitive() when leaving the scope const ::comphelper::ScopeGuard aScopeGuard( - boost::bind( &::canvas::IRenderModule::endPrimitive, - ::boost::ref(pRenderModule) ) ); + [&pRenderModule]() mutable { pRenderModule->endPrimitive(); } ); for(sal_uInt32 nIndex=0; nIndex<nVertexCount; ++nIndex) { |