summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorMario J. Rugiero <mrugiero@gmail.com>2015-10-31 00:47:15 -0300
committerNoel Grandin <noelgrandin@gmail.com>2015-10-31 12:53:08 +0000
commitbd332c2a335b34e209fe2b7fdfb669c855325636 (patch)
tree62502cc5de0449ffa15e307b16cbb94b565d84a8 /canvas
parent258e48d6d9c0d2ea9621b248239c0e1708a85cda (diff)
Replace boost::bind by lambdas in canvas/source/directx tree.
Change-Id: I1622f563b921a03234b9cb02de7c8abd00444129 Reviewed-on: https://gerrit.libreoffice.org/19703 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/directx/dx_canvashelper_texturefill.cxx6
-rw-r--r--canvas/source/directx/dx_textlayout_drawhelper.cxx5
2 files changed, 2 insertions, 9 deletions
diff --git a/canvas/source/directx/dx_canvashelper_texturefill.cxx b/canvas/source/directx/dx_canvashelper_texturefill.cxx
index c2e0c96ecc45..3d5f893a29cf 100644
--- a/canvas/source/directx/dx_canvashelper_texturefill.cxx
+++ b/canvas/source/directx/dx_canvashelper_texturefill.cxx
@@ -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);
diff --git a/canvas/source/directx/dx_textlayout_drawhelper.cxx b/canvas/source/directx/dx_textlayout_drawhelper.cxx
index 55c267d3e208..3db3996b9013 100644
--- a/canvas/source/directx/dx_textlayout_drawhelper.cxx
+++ b/canvas/source/directx/dx_textlayout_drawhelper.cxx
@@ -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);