From 6f4e11a95bcd7a591cb93d1a842bbc8ad1ed31c9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 8 Sep 2015 11:13:25 +0200 Subject: convert Link<> to typed Change-Id: I2aeda615e39db5a3cd39e168db34425e2912be8b --- basctl/source/basicide/baside3.cxx | 9 +++------ basctl/source/inc/baside3.hxx | 3 ++- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx index 67a20c4b5b2d..92d6837f83ee 100644 --- a/basctl/source/basicide/baside3.cxx +++ b/basctl/source/basicide/baside3.cxx @@ -46,6 +46,7 @@ #include #include #include +#include #include #include #include @@ -210,17 +211,13 @@ void DialogWindow::Command( const CommandEvent& rCEvt ) } - - -IMPL_STATIC_LINK( - DialogWindow, NotifyUndoActionHdl, SfxUndoAction *, pUndoAction ) +IMPL_STATIC_LINK_TYPED( + DialogWindow, NotifyUndoActionHdl, SdrUndoAction *, pUndoAction, void ) { // #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; - - return 0; } void DialogWindow::DoInit() diff --git a/basctl/source/inc/baside3.hxx b/basctl/source/inc/baside3.hxx index 1258fc778828..fe8dabba58e3 100644 --- a/basctl/source/inc/baside3.hxx +++ b/basctl/source/inc/baside3.hxx @@ -38,6 +38,7 @@ class Printer; class StarBASIC; class SfxItemSet; class SfxUndoManager; +class SdrUndoAction; namespace basctl { @@ -71,7 +72,7 @@ protected: virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE; virtual void LoseFocus() SAL_OVERRIDE; - DECL_STATIC_LINK( DialogWindow, NotifyUndoActionHdl, SfxUndoAction * ); + DECL_STATIC_LINK_TYPED( DialogWindow, NotifyUndoActionHdl, SdrUndoAction *, void ); virtual void DoInit() SAL_OVERRIDE; virtual void DoScroll( ScrollBar* pCurScrollBar ) SAL_OVERRIDE; virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; -- cgit