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