diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-16 13:33:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-17 08:19:32 +0200 |
commit | bc9d5eb566137351969c58f907a2dc98273a6bf8 (patch) | |
tree | a319c8b981ac128efea4315c9469786168c15844 /sw | |
parent | 7ffa2184586a2339f80f0af41c303dad9e822390 (diff) |
convert Link<> to typed
Change-Id: Ida49b6a482efa12703ce294b9665273ad2d8f68b
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/SidebarTxtControlAcc.cxx | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx b/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx index 114cf66f6e25..8bf33de51ec8 100644 --- a/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx +++ b/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx @@ -55,7 +55,7 @@ class SidebarTextEditSource : public SvxEditSource, virtual void UpdateData() SAL_OVERRIDE; virtual SfxBroadcaster& GetBroadcaster() const SAL_OVERRIDE; - DECL_LINK( NotifyHdl, EENotify* ); + DECL_LINK_TYPED( NotifyHdl, EENotify&, void ); private: SidebarTextControl& mrSidebarTextControl; @@ -79,7 +79,7 @@ SidebarTextEditSource::~SidebarTextEditSource() { if ( mrSidebarTextControl.GetTextView() ) { - mrSidebarTextControl.GetTextView()->GetOutliner()->SetNotifyHdl( Link<>() ); + mrSidebarTextControl.GetTextView()->GetOutliner()->SetNotifyHdl( Link<EENotify&,void>() ); } } @@ -113,19 +113,14 @@ SfxBroadcaster& SidebarTextEditSource::GetBroadcaster() const return *( const_cast< SidebarTextEditSource* > (this) ); } -IMPL_LINK(SidebarTextEditSource, NotifyHdl, EENotify*, pNotify) +IMPL_LINK_TYPED(SidebarTextEditSource, NotifyHdl, EENotify&, rNotify, void) { - if ( pNotify ) - { - std::unique_ptr< SfxHint > aHint( SvxEditSourceHelper::EENotification2Hint( pNotify ) ); + std::unique_ptr< SfxHint > aHint( SvxEditSourceHelper::EENotification2Hint( &rNotify ) ); - if( aHint.get() ) - { - Broadcast( *aHint.get() ); - } + if( aHint.get() ) + { + Broadcast( *aHint.get() ); } - - return 0; } // declaration and implementation of accessible context for <SidebarTextControl> instance |