sw/source/core/doc/DocumentDrawModelManager.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 96689fab1a02f1c1809597e5ef55b132db112e37
Author:     Neil Fachin <[email protected]>
AuthorDate: Sun May 25 20:50:01 2025 -0700
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Tue Aug 12 06:16:32 2025 +0200

    tdf#165233 Use lambdas instead of std::bind
    
    Change-Id: Ia5a23057abaae78d888af1674c79192adadb0a18
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185760
    Reviewed-by: Ilmari Lauhakangas <[email protected]>
    Tested-by: Jenkins

diff --git a/sw/source/core/doc/DocumentDrawModelManager.cxx 
b/sw/source/core/doc/DocumentDrawModelManager.cxx
index 0c48cdc1db05..dc63f4c85d3f 100644
--- a/sw/source/core/doc/DocumentDrawModelManager.cxx
+++ b/sw/source/core/doc/DocumentDrawModelManager.cxx
@@ -134,7 +134,9 @@ void DocumentDrawModelManager::InitDrawModel()
     if ( pRefDev )
         mpDrawModel->SetRefDevice( pRefDev );
 
-    mpDrawModel->SetNotifyUndoActionHdl( std::bind( &SwDoc::AddDrawUndo, 
&m_rDoc, std::placeholders::_1 ));
+    mpDrawModel->SetNotifyUndoActionHdl([&rDoc = 
m_rDoc](std::unique_ptr<SdrUndoAction> pAction) {
+        rDoc.AddDrawUndo(std::move(pAction));
+    });
     SwViewShell* const pSh = 
m_rDoc.getIDocumentLayoutAccess().GetCurrentViewShell();
     if ( !pSh )
         return;

Reply via email to