summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-28 15:58:14 +0200
committerNoel Grandin <noel@peralex.com>2015-08-31 09:50:10 +0200
commit335b14fba374c4a39252958de0e88a93dfc97a00 (patch)
tree94652acf69f8abf9f06942f9e04a92369fc7d9df /svtools
parent68ddda0f3fff8bc435c2a5fd60d1e7eff5359916 (diff)
convert Link<> to typed
Change-Id: I885694b2f7c950a292dd903952c5d298b9d0df9f
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/roadmap.hxx2
-rw-r--r--svtools/source/control/roadmap.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/svtools/inc/roadmap.hxx b/svtools/inc/roadmap.hxx
index a4e943166faa..304c8c7caa49 100644
--- a/svtools/inc/roadmap.hxx
+++ b/svtools/inc/roadmap.hxx
@@ -89,7 +89,7 @@ protected:
void Select();
private:
- DECL_LINK(ImplClickHdl, HyperLabel*);
+ DECL_LINK_TYPED(ImplClickHdl, HyperLabel*, void);
RoadmapItem* GetByIndex( ItemIndex _nItemIndex );
const RoadmapItem* GetByIndex( ItemIndex _nItemIndex ) const;
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);