Kaydet (Commit) 5491988d authored tarafından Mario J. Rugiero's avatar Mario J. Rugiero Kaydeden (comit) Noel Grandin

Replace boost::bind by lambdas in cppcanvas tree.

Change-Id: I2eba564ddd462a5aa9f96efda418927eb8b88eb7
Reviewed-on: https://gerrit.libreoffice.org/19611Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 13938d6d
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include <canvas/canvastools.hxx> #include <canvas/canvastools.hxx>
#include <memory> #include <memory>
#include <boost/bind.hpp>
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
#include "textaction.hxx" #include "textaction.hxx"
...@@ -362,9 +361,7 @@ namespace cppcanvas ...@@ -362,9 +361,7 @@ namespace cppcanvas
::std::transform( pOffsets + rSubset.mnSubsetBegin, ::std::transform( pOffsets + rSubset.mnSubsetBegin,
pOffsets + rSubset.mnSubsetEnd, pOffsets + rSubset.mnSubsetEnd,
pAdaptedOffsets, pAdaptedOffsets,
::boost::bind( ::std::minus<double>(), [nMinPos](double aPos) { return aPos - nMinPos; } );
_1,
nMinPos ) );
o_rMinPos = nMinPos; o_rMinPos = nMinPos;
o_rMaxPos = nMaxPos; o_rMaxPos = nMaxPos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment