diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-07-18 17:23:17 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-20 08:01:58 +0000 |
commit | 91b1f300cf7f357c3a39d0d5810326cc78d78f16 (patch) | |
tree | a89ef37ce86d8fe5babde77a43a098001ca3c164 /sfx2/source/notify/hintpost.cxx | |
parent | bca4d6f896fb12ceff37476c43ea8892898dd385 (diff) |
convert to typed Link<> in sfx2
Change-Id: Ifa42bd14d7329ff1043fa736513c468dda30485e
Reviewed-on: https://gerrit.libreoffice.org/17195
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source/notify/hintpost.cxx')
-rw-r--r-- | sfx2/source/notify/hintpost.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sfx2/source/notify/hintpost.cxx b/sfx2/source/notify/hintpost.cxx index 00e4290d87c6..f952b6b5971a 100644 --- a/sfx2/source/notify/hintpost.cxx +++ b/sfx2/source/notify/hintpost.cxx @@ -24,7 +24,7 @@ #include "sfxtypes.hxx" -SfxHintPoster::SfxHintPoster(const Link<>& rLink) +SfxHintPoster::SfxHintPoster(const Link<SfxRequest*,void>& rLink) : m_Link(rLink) { } @@ -33,25 +33,20 @@ SfxHintPoster::~SfxHintPoster() { } -void SfxHintPoster::Post( SfxHint* pHintToPost ) +void SfxHintPoster::Post( SfxRequest* pHintToPost ) { Application::PostUserEvent( ( LINK(this, SfxHintPoster, DoEvent_Impl) ), pHintToPost ); AddFirstRef(); } -IMPL_LINK( SfxHintPoster, DoEvent_Impl, SfxHint *, pPostedHint ) +IMPL_LINK( SfxHintPoster, DoEvent_Impl, SfxRequest *, pPostedHint ) { - Event( pPostedHint ); + m_Link.Call( pPostedHint ); ReleaseRef(); return 0; } -void SfxHintPoster::Event( SfxHint* pPostedHint ) -{ - m_Link.Call( pPostedHint ); -} - -void SfxHintPoster::SetEventHdl(const Link<>& rLink) +void SfxHintPoster::SetEventHdl(const Link<SfxRequest*,void>& rLink) { m_Link = rLink; } |