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:
Sergey Anisimov
2025-10-27 14:17:23 +01:00
committed by Hossein
parent 0b3a4ee85a
commit 7e21803099
@@ -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();