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

Replace boost::bind by lambdas in canvas/source/directx tree.

Change-Id: I1622f563b921a03234b9cb02de7c8abd00444129
Reviewed-on: https://gerrit.libreoffice.org/19703Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 258e48d6
......@@ -19,7 +19,6 @@
#include <sal/config.h>
#include <boost/bind.hpp>
#include <boost/tuple/tuple.hpp>
#include <basegfx/matrix/b2dhommatrix.hxx>
......@@ -576,10 +575,7 @@ namespace dxcanvas
std::transform(&rValues.maColors[0],
&rValues.maColors[0]+rValues.maColors.getLength(),
aColors.begin(),
boost::bind(
(Gdiplus::ARGB (*)( const uno::Sequence< double >& ))(
&tools::sequenceToArgb),
_1));
[](const uno::Sequence< double >& aDoubleSequence) { return tools::sequenceToArgb(aDoubleSequence); } );
std::vector< Gdiplus::REAL > aStops;
comphelper::sequenceToContainer(aStops,rValues.maStops);
......
......@@ -20,7 +20,6 @@
#include <sal/config.h>
#include <memory>
#include <boost/bind.hpp>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/tools/canvastools.hxx>
......@@ -80,9 +79,7 @@ namespace dxcanvas
// issue an ReleaseHDC() when leaving the scope
const ::comphelper::ScopeGuard aGuard(
boost::bind( &Gdiplus::Graphics::ReleaseHDC,
rGraphics.get(),
hdc ));
[&rGraphics, &hdc]() mutable { rGraphics->ReleaseHDC(hdc); } );
SystemGraphicsData aSystemGraphicsData;
aSystemGraphicsData.nSize = sizeof(SystemGraphicsData);
......
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