Hi, I would like you to review the following patch:
https://gerrit.libreoffice.org/19702 To pull it, you can do: git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/02/19702/1 Replace boost::bind by lambdas in canvas/source/directx tree. Change-Id: I6ecdd97a5054880d3c502f482db0839f8601e295 --- M canvas/source/directx/dx_canvashelper_texturefill.cxx M canvas/source/directx/dx_textlayout_drawhelper.cxx 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 c2e0c96..3d5f893 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 @@ 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 55c267d..3db3996 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 @@ // 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); -- To view, visit https://gerrit.libreoffice.org/19702 To unsubscribe, visit https://gerrit.libreoffice.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6ecdd97a5054880d3c502f482db0839f8601e295 Gerrit-PatchSet: 1 Gerrit-Project: core Gerrit-Branch: master Gerrit-Owner: Mario Rugiero <mrugi...@gmail.com> Gerrit-Reviewer: Anonymous Coward #1000450 Gerrit-Reviewer: Anonymous Coward #1000808 Gerrit-Reviewer: Gerrit Buildbot for LibreOffice Gerrit-Reviewer: Jenkins <c...@libreoffice.org> Gerrit-Reviewer: Joel Madero <jmadero....@gmail.com> Gerrit-Reviewer: LibreOffice gerrit bot <ger...@libreoffice.org> Gerrit-Reviewer: Mario Rugiero <mrugi...@gmail.com> Gerrit-Reviewer: Tinderbox 21 - Mac <t...@shmget.com> Gerrit-Reviewer: libreoffice buildbot1 <lobuilb...@gmail.com> Gerrit-Reviewer: libreoffice buildbot2 <libreoffice@lists.freedesktop.org> Gerrit-Reviewer: tb-37 MacOSX tdf <t...@documentfoundation.org> Gerrit-Reviewer: tb16 <t...@libreoffice.org> Gerrit-Reviewer: t...@libreoffice.org Gerrit-Reviewer: t...@shmget.com Gerrit-Reviewer: tb33 <t...@libreoffice.org> Gerrit-Reviewer: t...@libreoffice.org Gerrit-Reviewer: tb39 <t...@libreoffice.org> Gerrit-Reviewer: tb42 <t...@libreoffice.org> Gerrit-Reviewer: t...@libreoffice.org Gerrit-Reviewer: test_jenkins_...@libreoffice.org _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice