diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-07-08 17:54:08 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-07-09 10:18:05 +0200 |
commit | e8eb49995a9d8baba19b527fbccc7aebcdf259a6 (patch) | |
tree | 2ab737b58dd9ace1d71b81803e6703699a3f868b /include/canvas/base/graphicdevicebase.hxx | |
parent | writerfilter: use std::transform in PropValVector::getValues() (diff) | |
download | core-e8eb49995a9d8baba19b527fbccc7aebcdf259a6.tar.gz core-e8eb49995a9d8baba19b527fbccc7aebcdf259a6.zip |
canvas: remove boost::bind from headers
Change-Id: Ieaa8a74d59ee9c74fafe823e01db4a349c49821e
Diffstat (limited to 'include/canvas/base/graphicdevicebase.hxx')
-rw-r--r-- | include/canvas/base/graphicdevicebase.hxx | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/include/canvas/base/graphicdevicebase.hxx b/include/canvas/base/graphicdevicebase.hxx index e7c75c80c552..83b5adc69fd4 100644 --- a/include/canvas/base/graphicdevicebase.hxx +++ b/include/canvas/base/graphicdevicebase.hxx @@ -119,21 +119,15 @@ namespace canvas mbDumpScreenContent(false) { maPropHelper.initProperties( PropertySetHelper::MakeMap - ("HardwareAcceleration", - boost::bind(&DeviceHelper::isAccelerated, - boost::ref(maDeviceHelper))) - ("DeviceHandle", - boost::bind(&DeviceHelper::getDeviceHandle, - boost::ref(maDeviceHelper))) - ("SurfaceHandle", - boost::bind(&DeviceHelper::getSurfaceHandle, - boost::ref(maDeviceHelper))) - ("DumpScreenContent", - boost::bind(&ThisType::getDumpScreenContent, - this), - boost::bind(&ThisType::setDumpScreenContent, - this, - _1))); + ("HardwareAcceleration", + [this] () { return this->maDeviceHelper.isAccelerated(); } ) + ("DeviceHandle", + [this] () { return this->maDeviceHelper.getDeviceHandle(); } ) + ("SurfaceHandle", + [this] () { return this->maDeviceHelper.getSurfaceHandle(); } ) + ("DumpScreenContent", + [this] () { return this->getDumpScreenContent(); }, + [this] (css::uno::Any const& rAny) { this->setDumpScreenContent(rAny); })); } virtual void disposeThis() SAL_OVERRIDE |