[Libreoffice-commits] core.git: cppcanvas/source

Mario J. Rugiero mrugiero at gmail.com
Tue Oct 27 05:41:52 UTC 2015


 cppcanvas/source/mtfrenderer/textaction.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 5491988d228ac253411ad64ad1267eb9bb65ad3f
Author: Mario J. Rugiero <mrugiero at gmail.com>
Date:   Mon Oct 26 15:08:31 2015 -0300

    Replace boost::bind by lambdas in cppcanvas tree.
    
    Change-Id: I2eba564ddd462a5aa9f96efda418927eb8b88eb7
    Reviewed-on: https://gerrit.libreoffice.org/19611
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/cppcanvas/source/mtfrenderer/textaction.cxx b/cppcanvas/source/mtfrenderer/textaction.cxx
index 41a53c4..01dc843 100644
--- a/cppcanvas/source/mtfrenderer/textaction.cxx
+++ b/cppcanvas/source/mtfrenderer/textaction.cxx
@@ -41,7 +41,6 @@
 #include <canvas/canvastools.hxx>
 
 #include <memory>
-#include <boost/bind.hpp>
 #include <boost/noncopyable.hpp>
 
 #include "textaction.hxx"
@@ -362,9 +361,7 @@ namespace cppcanvas
                 ::std::transform( pOffsets + rSubset.mnSubsetBegin,
                                   pOffsets + rSubset.mnSubsetEnd,
                                   pAdaptedOffsets,
-                                  ::boost::bind( ::std::minus<double>(),
-                                                 _1,
-                                                 nMinPos ) );
+                                  [nMinPos](double aPos) { return aPos - nMinPos; } );
 
                 o_rMinPos = nMinPos;
                 o_rMaxPos = nMaxPos;


More information about the Libreoffice-commits mailing list