summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/view.hxx4
-rw-r--r--starmath/source/view.cxx7
2 files changed, 4 insertions, 7 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index 29d093721d4e..ddb59154f51d 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -88,7 +88,7 @@ protected:
private:
void RepaintViewShellDoc();
- DECL_LINK(CaretBlinkTimerHdl, void *);
+ DECL_LINK_TYPED(CaretBlinkTimerHdl, Timer *, void);
void CaretBlinkInit();
void CaretBlinkStart();
void CaretBlinkStop();
@@ -166,7 +166,7 @@ class SmCmdBoxWindow : public SfxDockingWindow
Timer aInitialFocusTimer;
- DECL_LINK(InitialFocusTimerHdl, Timer *);
+ DECL_LINK_TYPED(InitialFocusTimerHdl, Timer *, void);
protected :
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 304327be8f3b..a9ae7e1fa116 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -273,7 +273,7 @@ void SmGraphicWindow::RepaintViewShellDoc()
pDoc->Repaint();
}
-IMPL_LINK_NOARG(SmGraphicWindow, CaretBlinkTimerHdl)
+IMPL_LINK_NOARG_TYPED(SmGraphicWindow, CaretBlinkTimerHdl, Timer *, void)
{
if (IsCursorVisible())
SetIsCursorVisible(false);
@@ -281,8 +281,6 @@ IMPL_LINK_NOARG(SmGraphicWindow, CaretBlinkTimerHdl)
SetIsCursorVisible(true);
RepaintViewShellDoc();
-
- return 0;
}
void SmGraphicWindow::CaretBlinkInit()
@@ -820,7 +818,7 @@ void SmCmdBoxWindow::StateChanged( StateChangedType nStateChange )
}
-IMPL_LINK( SmCmdBoxWindow, InitialFocusTimerHdl, Timer *, EMPTYARG /*pTimer*/ )
+IMPL_LINK_NOARG_TYPED( SmCmdBoxWindow, InitialFocusTimerHdl, Timer *, void )
{
// We want to have the focus in the edit window once Math has been opened
// to allow for immediate typing.
@@ -857,7 +855,6 @@ IMPL_LINK( SmCmdBoxWindow, InitialFocusTimerHdl, Timer *, EMPTYARG /*pTimer*/ )
{
SAL_WARN( "starmath", "failed to properly set initial focus to edit window" );
}
- return 0;
}