From b98fb89598a400b33a47ceebafe1604c03c829dc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 16 Sep 2015 09:51:57 +0200 Subject: convert Link<> to typed Change-Id: Ied8e0b35f193770a6651f1c57dfb8eedd22d837c --- starmath/source/accessibility.cxx | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'starmath/source/accessibility.cxx') diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index fbae1df88f16..7831b1591926 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -941,19 +941,14 @@ SmTextForwarder::~SmTextForwarder() { EditEngine *pEditEngine = rEditAcc.GetEditEngine(); if (pEditEngine) - pEditEngine->SetNotifyHdl( Link<>() ); + pEditEngine->SetNotifyHdl( Link() ); } -IMPL_LINK(SmTextForwarder, NotifyHdl, EENotify*, aNotify) +IMPL_LINK_TYPED(SmTextForwarder, NotifyHdl, EENotify&, rNotify, void) { - if (aNotify) - { - ::std::unique_ptr< SfxHint > aHint = SvxEditSourceHelper::EENotification2Hint( aNotify ); - if (aHint.get()) - rEditSource.GetBroadcaster().Broadcast( *aHint.get() ); - } - - return 0; + ::std::unique_ptr< SfxHint > aHint = SvxEditSourceHelper::EENotification2Hint( &rNotify ); + if (aHint.get()) + rEditSource.GetBroadcaster().Broadcast( *aHint.get() ); } sal_Int32 SmTextForwarder::GetParagraphCount() const @@ -1640,7 +1635,7 @@ void SmEditAccessible::ClearWin() // (avoid handler being called for already dead object) EditEngine *pEditEngine = GetEditEngine(); if (pEditEngine) - pEditEngine->SetNotifyHdl( Link<>() ); + pEditEngine->SetNotifyHdl( Link() ); pWin = 0; // implicitly results in AccessibleStateType::DEFUNC set -- cgit