diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-28 15:58:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-31 09:50:10 +0200 |
commit | 335b14fba374c4a39252958de0e88a93dfc97a00 (patch) | |
tree | 94652acf69f8abf9f06942f9e04a92369fc7d9df /svtools/source | |
parent | 68ddda0f3fff8bc435c2a5fd60d1e7eff5359916 (diff) |
convert Link<> to typed
Change-Id: I885694b2f7c950a292dd903952c5d298b9d0df9f
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/roadmap.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx index 9a974854a589..f27ac1ab9ff0 100644 --- a/svtools/source/control/roadmap.cxx +++ b/svtools/source/control/roadmap.cxx @@ -69,7 +69,7 @@ public: void ToggleBackgroundColor( const Color& _rGBColor ); void SetInteractive( bool _bInteractive ); - void SetClickHdl( const Link<>& rLink ); + void SetClickHdl( const Link<HyperLabel*,void>& rLink ); void Enable( bool bEnable = true); bool IsEnabled() const; void GrabFocus(); @@ -646,9 +646,9 @@ bool ORoadmap::PreNotify(NotifyEvent& _rNEvt) return Window::PreNotify( _rNEvt ); } -IMPL_LINK(ORoadmap, ImplClickHdl, HyperLabel*, _CurHyperLabel) +IMPL_LINK_TYPED(ORoadmap, ImplClickHdl, HyperLabel*, _CurHyperLabel, void) { - return SelectRoadmapItemByID( _CurHyperLabel->GetID() ) ? 1 : 0; + SelectRoadmapItemByID( _CurHyperLabel->GetID() ); } void ORoadmap::DataChanged(const DataChangedEvent& rDCEvt) @@ -813,7 +813,7 @@ void RoadmapItem::Update(ItemIndex _RMIndex, const OUString& _rText) ImplUpdateIndex( _RMIndex ); } -void RoadmapItem::SetClickHdl(const Link<>& rLink) +void RoadmapItem::SetClickHdl(const Link<HyperLabel*,void>& rLink) { if ( mpDescription ) mpDescription->SetClickHdl( rLink); |