From 6d8124e30c6ce38219ca323f9674f242c822c360 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 21 Sep 2015 08:55:52 +0200 Subject: convert Link<> to typed and remove unused UserEvent class Change-Id: Ic61c5eef75c36393dbbaa92d93163eab89021ee3 --- include/svtools/acceleratorexecute.hxx | 2 +- include/vcl/evntpost.hxx | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/svtools/acceleratorexecute.hxx b/include/svtools/acceleratorexecute.hxx index d25df279b6a7..4b099e0169f5 100644 --- a/include/svtools/acceleratorexecute.hxx +++ b/include/svtools/acceleratorexecute.hxx @@ -232,7 +232,7 @@ class SVT_DLLPUBLIC AcceleratorExecute : private TMutexInit /** @deprecated replaced by internal class AsyncAccelExec ... remove this resource here if we go forwards to next major */ - DECL_DLLPRIVATE_LINK(impl_ts_asyncCallback, void*); + DECL_DLLPRIVATE_LINK_TYPED(impl_ts_asyncCallback, LinkParamNone*, void); }; } // namespace svt diff --git a/include/vcl/evntpost.hxx b/include/vcl/evntpost.hxx index 55f93685cac6..276c8879aed5 100644 --- a/include/vcl/evntpost.hxx +++ b/include/vcl/evntpost.hxx @@ -27,23 +27,17 @@ struct ImplSVEvent; namespace vcl { - struct UserEvent - { - sal_uLong m_nWhich; - void* m_pData; - }; - class VCL_DLLPUBLIC EventPoster { - ImplSVEvent * m_nId; - Link<> m_aLink; + ImplSVEvent * m_nId; + Link m_aLink; DECL_DLLPRIVATE_LINK_TYPED( DoEvent_Impl, void*, void ); public: - EventPoster( const Link<>& rLink ); + EventPoster( const Link& rLink ); ~EventPoster(); - void Post( UserEvent* pEvent ); + void Post(); }; } -- cgit