diff options
Diffstat (limited to 'basctl/source/basicide/baside3.cxx')
-rw-r--r-- | basctl/source/basicide/baside3.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx index 91e1d4972539..dfa698a4a345 100644 --- a/basctl/source/basicide/baside3.cxx +++ b/basctl/source/basicide/baside3.cxx @@ -83,7 +83,7 @@ DialogWindow::DialogWindow(DialogWindowLayout* pParent, ScriptDocument const& rD InitSettings(); m_pEditor->GetModel().SetNotifyUndoActionHdl( - LINK(this, DialogWindow, NotifyUndoActionHdl) + &DialogWindow::NotifyUndoActionHdl ); SetHelpId( HID_BASICIDE_DIALOGWINDOW ); @@ -217,13 +217,11 @@ void DialogWindow::Command( const CommandEvent& rCEvt ) } -IMPL_STATIC_LINK( - DialogWindow, NotifyUndoActionHdl, SdrUndoAction *, pUndoAction, void ) +void DialogWindow::NotifyUndoActionHdl( std::unique_ptr<SdrUndoAction> ) { // #i120515# pUndoAction needs to be deleted, this hand over is an ownership // change. As long as it does not get added to the undo manager, it needs at // least to be deleted. - delete pUndoAction; } void DialogWindow::DoInit() |