tdf#165233 lambdas instead of std::bind
Change-Id: Ibe93fe8dc77f0630832145f03788a80a32104c9b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192578 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
This commit is contained in:
@@ -1543,8 +1543,9 @@ DrawModelWrapper* ChartController::GetDrawModelWrapper()
|
||||
m_pDrawModelWrapper = m_xChartView->getDrawModelWrapper();
|
||||
if ( m_pDrawModelWrapper )
|
||||
{
|
||||
m_pDrawModelWrapper->getSdrModel().SetNotifyUndoActionHdl(
|
||||
std::bind(&ChartController::NotifyUndoActionHdl, this, std::placeholders::_1) );
|
||||
m_pDrawModelWrapper->getSdrModel().SetNotifyUndoActionHdl([this](std::unique_ptr<SdrUndoAction> pUndoAction){
|
||||
NotifyUndoActionHdl(std::move(pUndoAction));
|
||||
});
|
||||
}
|
||||
}
|
||||
return m_pDrawModelWrapper.get();
|
||||
|
||||
Reference in New Issue
Block a user