diff options
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 4 | ||||
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index 72fea5fc06dd..c002ef8b1dd0 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -76,8 +76,6 @@ #include <com/sun/star/frame/XLayoutManager.hpp> #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> -#include <boost/bind.hpp> - // this is needed to properly destroy the unique_ptr to the AcceleratorExecute // object in the DTOR #include <svtools/acceleratorexecute.hxx> @@ -120,7 +118,7 @@ ChartController::ChartController(uno::Reference<uno::XComponentContext> const & m_aDispatchContainer( m_xCC, this ), m_eDrawMode( CHARTDRAW_SELECT ), mpSelectionChangeHandler(new svx::sidebar::SelectionChangeHandler( - ::boost::bind(&ChartController::GetContextName, this), + [this]() { return this->GetContextName(); }, this, sfx2::sidebar::EnumContext::Context_Cell)) { m_aDoubleClickTimer.SetTimeoutHdl( LINK( this, ChartController, DoubleClickWaitingHdl ) ); diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 969b0eef2a26..333f3c60c71f 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -58,7 +58,6 @@ #include <comphelper/scopeguard.hxx> #include <comphelper/servicehelper.hxx> #include <cppuhelper/supportsservice.hxx> -#include <boost/bind.hpp> #include <unotools/streamwrap.hxx> #include <unotools/localedatawrapper.hxx> #include <svx/charthelper.hxx> @@ -2625,7 +2624,7 @@ void ChartView::createShapes() } //make sure add-in is refreshed after creating the shapes - const ::comphelper::ScopeGuard aGuard( boost::bind( &ChartView::impl_refreshAddIn, this ) ); + const ::comphelper::ScopeGuard aGuard( [this]() { this->impl_refreshAddIn(); } ); m_aResultingDiagramRectangleExcludingAxes = awt::Rectangle(0,0,0,0); impl_deleteCoordinateSystems(); |