summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/vcl/canvashelper_texturefill.cxx7
-rw-r--r--canvas/source/vcl/spritecanvas.cxx16
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" );