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

boost::bind -> lambdas in canvas/source/vcl subtree

Change-Id: I2b2e746197b94222c73b78379d64086adfb5e693
Reviewed-on: https://gerrit.libreoffice.org/19712Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst d841b442
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <sal/config.h> #include <sal/config.h>
#include <boost/bind.hpp>
#include <boost/tuple/tuple.hpp> #include <boost/tuple/tuple.hpp>
#include <basegfx/matrix/b2dhommatrix.hxx> #include <basegfx/matrix/b2dhommatrix.hxx>
...@@ -701,9 +700,9 @@ namespace vclcanvas ...@@ -701,9 +700,9 @@ namespace vclcanvas
std::transform(&rValues.maColors[0], std::transform(&rValues.maColors[0],
&rValues.maColors[0]+rValues.maColors.getLength(), &rValues.maColors[0]+rValues.maColors.getLength(),
aColors.begin(), aColors.begin(),
boost::bind( [](const uno::Sequence< double >& aColor) {
&vcl::unotools::stdColorSpaceSequenceToColor, return vcl::unotools::stdColorSpaceSequenceToColor( aColor );
_1)); } );
// TODO(E1): Return value // TODO(E1): Return value
// TODO(F1): FillRule // TODO(F1): FillRule
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#include <algorithm> #include <algorithm>
#include <boost/bind.hpp>
#include <basegfx/tools/canvastools.hxx> #include <basegfx/tools/canvastools.hxx>
#include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/registry/XRegistryKey.hpp> #include <com/sun/star/registry/XRegistryKey.hpp>
...@@ -64,17 +62,11 @@ namespace vclcanvas ...@@ -64,17 +62,11 @@ namespace vclcanvas
maPropHelper.addProperties( maPropHelper.addProperties(
::canvas::PropertySetHelper::MakeMap ::canvas::PropertySetHelper::MakeMap
("UnsafeScrolling", ("UnsafeScrolling",
boost::bind(&SpriteCanvasHelper::isUnsafeScrolling, [this]() { return this->maCanvasHelper.isUnsafeScrolling(); },
boost::ref(maCanvasHelper)), [this](css::uno::Any const& aAny) mutable { this->maCanvasHelper.enableUnsafeScrolling(aAny); } )
boost::bind(&SpriteCanvasHelper::enableUnsafeScrolling,
boost::ref(maCanvasHelper),
_1))
("SpriteBounds", ("SpriteBounds",
boost::bind(&SpriteCanvasHelper::isSpriteBounds, [this]() { return this->maCanvasHelper.isSpriteBounds(); },
boost::ref(maCanvasHelper)), [this](css::uno::Any const& aAny) mutable { this->maCanvasHelper.enableSpriteBounds(aAny); } ));
boost::bind(&SpriteCanvasHelper::enableSpriteBounds,
boost::ref(maCanvasHelper),
_1)));
SAL_INFO("canvas.vcl", "VCLSpriteCanvas::initialize called" ); SAL_INFO("canvas.vcl", "VCLSpriteCanvas::initialize called" );
......
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