diff options
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside3.cxx | 9 | ||||
-rw-r--r-- | basctl/source/inc/baside3.hxx | 3 |
2 files changed, 5 insertions, 7 deletions
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 <svl/aeitem.hxx> #include <svl/visitem.hxx> #include <svl/whiter.hxx> +#include <svx/svdundo.hxx> #include <tools/diagnose_ex.h> #include <tools/urlobj.hxx> #include <vcl/layout.hxx> @@ -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; |