[Libreoffice-commits] core.git: canvas/source
Mario J. Rugiero
mrugiero at gmail.com
Sun Nov 1 03:28:56 PST 2015
canvas/source/tools/surface.cxx | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
New commits:
commit 1bd101d91d12e310ecfd27d86c4c81fdec8886a6
Author: Mario J. Rugiero <mrugiero at gmail.com>
Date: Sat Oct 31 14:48:30 2015 -0300
boost::bind -> lambdas in canvas/source/tools/surface.cxx
Change-Id: I9a9c4832cf18b10e15d2a4de8944b404b082e990
Reviewed-on: https://gerrit.libreoffice.org/19710
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/canvas/source/tools/surface.cxx b/canvas/source/tools/surface.cxx
index 3ec52b6..8cd5e93 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)
{
More information about the Libreoffice-commits
mailing list