sd: replace boost::bind with C++11 lambdas

Change-Id: Idfac081e0b8aecde488166fe741d5b34cfcc66fe
This commit is contained in:
Michael Stahl
2016-03-03 11:36:09 +01:00
parent 6153a30e1e
commit 944cdf5fa8
4 changed files with 8 additions and 8 deletions

View File

@@ -25,7 +25,6 @@
#include <vcl/svapp.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <boost/bind.hpp>
#include <editeng/outliner.hxx>
#include <editeng/eeitem.hxx>
@@ -842,7 +841,10 @@ void SdStyleSheet::notifyModifyListener()
if( pContainer )
{
EventObject aEvt( static_cast< OWeakObject * >( this ) );
pContainer->forEach<XModifyListener>( boost::bind( &XModifyListener::modified, _1, boost::cref( aEvt ) ) );
pContainer->forEach<XModifyListener>(
[&] (Reference<XModifyListener> const& xListener) {
return xListener->modified(aEvt);
} );
}
}

View File

@@ -25,7 +25,6 @@
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <svl/eitem.hxx>
#include <boost/bind.hpp>
namespace sd {
@@ -58,7 +57,7 @@ NavigatorChildWindow::NavigatorChildWindow (
pBindings);
pNavWin->SetUpdateRequestFunctor(
::boost::bind(RequestNavigatorUpdate, pBindings));
[pBindings] () { return RequestNavigatorUpdate(pBindings); });
SetWindow( pNavWin );
}

View File

@@ -23,7 +23,6 @@
#include <sfx2/sidebar/Theme.hxx>
#include <boost/bind.hpp>
namespace sd { namespace sidebar {
@@ -38,7 +37,8 @@ NavigatorWrapper::NavigatorWrapper (
SdResId(FLT_NAVIGATOR),
pBindings))
{
maNavigator->SetUpdateRequestFunctor(::boost::bind(&NavigatorWrapper::UpdateNavigator, this));
maNavigator->SetUpdateRequestFunctor(
[this] () { return this->UpdateNavigator(); });
maNavigator->SetPosSizePixel(
Point(0,0),
GetSizePixel());

View File

@@ -69,7 +69,6 @@
#include "annotationmanager.hxx"
#include "DrawController.hxx"
#include <boost/bind.hpp>
#include <memory>
using namespace ::com::sun::star;
@@ -114,7 +113,7 @@ DrawViewShell::DrawViewShell( SfxViewFrame* pFrame, ViewShellBase& rViewShellBas
, mbIsLayerModeActive(false)
, mbIsInSwitchPage(false)
, mpSelectionChangeHandler(new svx::sidebar::SelectionChangeHandler(
::boost::bind(&DrawViewShell::GetSidebarContextName, this),
[this] () { return this->GetSidebarContextName(); },
uno::Reference<frame::XController>(&rViewShellBase.GetDrawController()),
sfx2::sidebar::EnumContext::Context_Default))
{