diff options
Diffstat (limited to 'include/sfx2/hintpost.hxx')
-rw-r--r-- | include/sfx2/hintpost.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/sfx2/hintpost.hxx b/include/sfx2/hintpost.hxx index cfbc60d87631..ce5f5ac8f0e2 100644 --- a/include/sfx2/hintpost.hxx +++ b/include/sfx2/hintpost.hxx @@ -21,6 +21,8 @@ #include <tools/link.hxx> #include <tools/ref.hxx> +#include <functional> +#include <memory> class SfxRequest; @@ -39,7 +41,7 @@ class SfxRequest; class SfxHintPoster : public SvRefBase { private: - Link<SfxRequest*,void> m_Link; + std::function<void (std::unique_ptr<SfxRequest>)> m_Link; DECL_LINK( DoEvent_Impl, void*, void ); @@ -47,10 +49,10 @@ protected: virtual ~SfxHintPoster() override; public: - SfxHintPoster(const Link<SfxRequest*,void>& rLink); + SfxHintPoster(const std::function<void (std::unique_ptr<SfxRequest>)>& rLink); - void Post( SfxRequest* pHint ); - void SetEventHdl(const Link<SfxRequest*,void>& rLink); + void Post( std::unique_ptr<SfxRequest> pHint ); + void SetEventHdl(const std::function<void (std::unique_ptr<SfxRequest>)>& rLink); }; #endif |