diff options
author | Mario J. Rugiero <mrugiero@gmail.com> | 2015-10-31 14:57:09 -0300 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-01 11:31:21 +0000 |
commit | ce69d6e9e1b776b9cd60b2db5ca002234ea36d8f (patch) | |
tree | 339d01adaf5cbb2d2599b7c45f45c53a36b74f23 /canvas | |
parent | d841b4424363e436371bd671d95bdea4ca65f249 (diff) |
boost::bind -> lambdas in canvas/source/vcl subtree
Change-Id: I2b2e746197b94222c73b78379d64086adfb5e693
Reviewed-on: https://gerrit.libreoffice.org/19712
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/vcl/canvashelper_texturefill.cxx | 7 | ||||
-rw-r--r-- | canvas/source/vcl/spritecanvas.cxx | 16 |
2 files changed, 7 insertions, 16 deletions
diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx index e87a26b217a0..155498f749ad 100644 --- a/canvas/source/vcl/canvashelper_texturefill.cxx +++ b/canvas/source/vcl/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> @@ -701,9 +700,9 @@ namespace vclcanvas std::transform(&rValues.maColors[0], &rValues.maColors[0]+rValues.maColors.getLength(), aColors.begin(), - boost::bind( - &vcl::unotools::stdColorSpaceSequenceToColor, - _1)); + [](const uno::Sequence< double >& aColor) { + return vcl::unotools::stdColorSpaceSequenceToColor( aColor ); + } ); // TODO(E1): Return value // TODO(F1): FillRule diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx index f6eb7c6e6ce9..39e3ad746944 100644 --- a/canvas/source/vcl/spritecanvas.cxx +++ b/canvas/source/vcl/spritecanvas.cxx @@ -21,8 +21,6 @@ #include <algorithm> -#include <boost/bind.hpp> - #include <basegfx/tools/canvastools.hxx> #include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <com/sun/star/registry/XRegistryKey.hpp> @@ -64,17 +62,11 @@ namespace vclcanvas maPropHelper.addProperties( ::canvas::PropertySetHelper::MakeMap ("UnsafeScrolling", - boost::bind(&SpriteCanvasHelper::isUnsafeScrolling, - boost::ref(maCanvasHelper)), - boost::bind(&SpriteCanvasHelper::enableUnsafeScrolling, - boost::ref(maCanvasHelper), - _1)) + [this]() { return this->maCanvasHelper.isUnsafeScrolling(); }, + [this](css::uno::Any const& aAny) mutable { this->maCanvasHelper.enableUnsafeScrolling(aAny); } ) ("SpriteBounds", - boost::bind(&SpriteCanvasHelper::isSpriteBounds, - boost::ref(maCanvasHelper)), - boost::bind(&SpriteCanvasHelper::enableSpriteBounds, - boost::ref(maCanvasHelper), - _1))); + [this]() { return this->maCanvasHelper.isSpriteBounds(); }, + [this](css::uno::Any const& aAny) mutable { this->maCanvasHelper.enableSpriteBounds(aAny); } )); SAL_INFO("canvas.vcl", "VCLSpriteCanvas::initialize called" ); |