diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-21 08:55:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-22 20:21:55 +0200 |
commit | 6d8124e30c6ce38219ca323f9674f242c822c360 (patch) | |
tree | 2a05e63023a1ff5cb327ca844d2830c66bf9fbdb /vcl | |
parent | 3526da14b7c49adff202f32c15948fed8b9915ea (diff) |
convert Link<> to typed
and remove unused UserEvent class
Change-Id: Ic61c5eef75c36393dbbaa92d93163eab89021ee3
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/helper/evntpost.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/vcl/source/helper/evntpost.cxx b/vcl/source/helper/evntpost.cxx index ce84ec74cba2..1d4a657b772b 100644 --- a/vcl/source/helper/evntpost.cxx +++ b/vcl/source/helper/evntpost.cxx @@ -26,7 +26,7 @@ namespace vcl { -EventPoster::EventPoster( const Link<>& rLink ) +EventPoster::EventPoster( const Link<LinkParamNone*,void>& rLink ) : m_aLink(rLink) { m_nId = 0; @@ -39,19 +39,18 @@ EventPoster::~EventPoster() Application::RemoveUserEvent( m_nId ); } -void EventPoster::Post( UserEvent* pEvent ) +void EventPoster::Post() { DBG_TESTSOLARMUTEX(); - m_nId = Application::PostUserEvent( ( LINK( this, EventPoster, DoEvent_Impl ) ), pEvent ); + m_nId = Application::PostUserEvent( ( LINK( this, EventPoster, DoEvent_Impl ) ), nullptr ); } -IMPL_LINK_TYPED( EventPoster, DoEvent_Impl, void*, p, void ) +IMPL_LINK_TYPED( EventPoster, DoEvent_Impl, void*, /*p*/, void ) { - UserEvent* pEvent = static_cast<UserEvent*>(p); DBG_TESTSOLARMUTEX(); m_nId = 0; - m_aLink.Call( pEvent ); + m_aLink.Call( nullptr ); } } |