diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-16 13:22:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-16 13:44:18 +0200 |
commit | a9bb16e89ca23e1975becbb0fa061e379613ace4 (patch) | |
tree | 1d9b434d15122f6e319179d2815714e88838042b | |
parent | f4ea34e7558fcd31096f51f632c0c0893b49cf5b (diff) |
convert Link<> to typed
Change-Id: I9aa883a2228ed5d39e924e4364cd3a812f2037a3
-rw-r--r-- | include/svtools/editbrowsebox.hxx | 6 | ||||
-rw-r--r-- | svtools/source/brwbox/ebbcontrols.cxx | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx index e1c7c1047b4b..532b47ed1ee4 100644 --- a/include/svtools/editbrowsebox.hxx +++ b/include/svtools/editbrowsebox.hxx @@ -284,7 +284,7 @@ namespace svt VclPtr<CheckBox> pBox; Rectangle aFocusRect; Link<VclPtr<CheckBox>,void> m_aClickLink; - Link<> m_aModifyLink; + Link<LinkParamNone*,void> m_aModifyLink; public: CheckBoxControl(vcl::Window* pParent, WinBits nWinStyle = 0); @@ -301,7 +301,7 @@ namespace svt void SetClickHdl(const Link<VclPtr<CheckBox>,void>& rHdl) {m_aClickLink = rHdl;} - void SetModifyHdl(const Link<>& rHdl) {m_aModifyLink = rHdl;} + void SetModifyHdl(const Link<LinkParamNone*,void>& rHdl) {m_aModifyLink = rHdl;} CheckBox& GetBox() {return *pBox;}; @@ -326,7 +326,7 @@ namespace svt protected: virtual bool WantMouseEvent() const override; private: - DECL_LINK(ModifyHdl, void*); + DECL_LINK_TYPED(ModifyHdl, LinkParamNone*, void); }; diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx index f16c21e3eea6..3550f48a1a6c 100644 --- a/svtools/source/brwbox/ebbcontrols.cxx +++ b/svtools/source/brwbox/ebbcontrols.cxx @@ -263,7 +263,7 @@ namespace svt IMPL_LINK_NOARG_TYPED(CheckBoxControl, OnClick, Button*, void) { m_aClickLink.Call(pBox); - m_aModifyLink.Call(pBox); + m_aModifyLink.Call(nullptr); } @@ -359,10 +359,9 @@ namespace svt } - IMPL_LINK_NOARG(CheckBoxCellController, ModifyHdl) + IMPL_LINK_NOARG_TYPED(CheckBoxCellController, ModifyHdl, LinkParamNone*, void) { callModifyHdl(); - return 0; } //= MultiLineEditImplementation |