summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);