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>
This commit is contained in:
committed by
Noel Grandin
parent
d841b44243
commit
ce69d6e9e1
@@ -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
|
||||
|
@@ -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" );
|
||||
|
||||
|
Reference in New Issue
Block a user