Kaydet (Commit) 1bd101d9 authored tarafından Mario J. Rugiero's avatar Mario J. Rugiero Kaydeden (comit) Noel Grandin

boost::bind -> lambdas in canvas/source/tools/surface.cxx

Change-Id: I9a9c4832cf18b10e15d2a4de8944b404b082e990
Reviewed-on: https://gerrit.libreoffice.org/19710Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 76e75d2d
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment