Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


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 <mrugiero@gmail.com>
Gerrit-Reviewer: Anonymous Coward #1000450
Gerrit-Reviewer: Anonymous Coward #1000808
Gerrit-Reviewer: Gerrit Buildbot for LibreOffice
Gerrit-Reviewer: Jenkins <ci@libreoffice.org>
Gerrit-Reviewer: Joel Madero <jmadero.dev@gmail.com>
Gerrit-Reviewer: LibreOffice gerrit bot <gerrit@libreoffice.org>
Gerrit-Reviewer: Mario Rugiero <mrugiero@gmail.com>
Gerrit-Reviewer: Tinderbox 21 - Mac <tb21@shmget.com>
Gerrit-Reviewer: libreoffice buildbot1 <lobuilbot1@gmail.com>
Gerrit-Reviewer: libreoffice buildbot2 <libreoffice@lists.freedesktop.org>
Gerrit-Reviewer: tb-37 MacOSX tdf <tb37@documentfoundation.org>
Gerrit-Reviewer: tb16 <tb16@libreoffice.org>
Gerrit-Reviewer: tb20@libreoffice.org
Gerrit-Reviewer: tb2@shmget.com
Gerrit-Reviewer: tb33 <tb33@libreoffice.org>
Gerrit-Reviewer: tb38@libreoffice.org
Gerrit-Reviewer: tb39 <tb39@libreoffice.org>
Gerrit-Reviewer: tb42 <tb42@libreoffice.org>
Gerrit-Reviewer: tb45@libreoffice.org
Gerrit-Reviewer: test_jenkins_mac@libreoffice.org

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.