diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-11 13:27:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-14 10:00:44 +0200 |
commit | 2a4ccc0c1e836fb7cde991c1233ca5a63599ec8b (patch) | |
tree | 74fee8c81b010cfef46fab0b96e5eb984726d25a /include/vcl | |
parent | 6532cb0e5ec3a59c248b332e868c4c03c31659f1 (diff) |
convert Link<> to typed
Change-Id: I1c501671d72edd5b998e80c7fa1e91dbeb507af8
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/button.hxx | 4 | ||||
-rw-r--r-- | include/vcl/layout.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx index 5717ebcaf5e5..408eda900569 100644 --- a/include/vcl/button.hxx +++ b/include/vcl/button.hxx @@ -409,7 +409,7 @@ private: TriState meState; TriState meSaveValue; bool mbTriState; - Link<> maToggleHdl; + Link<CheckBox&,void> maToggleHdl; // when mbLegacyNoTextAlign is set then the old behaviour where // the WB_LEFT, WB_RIGHT & WB_CENTER affect the image placement // occurs, otherwise the image ( checkbox box ) is placed @@ -482,7 +482,7 @@ public: Size CalcMinimumSize( long nMaxWidth = 0 ) const; virtual Size GetOptimalSize() const SAL_OVERRIDE; - void SetToggleHdl( const Link<>& rLink ) { maToggleHdl = rLink; } + void SetToggleHdl( const Link<CheckBox&,void>& rLink ) { maToggleHdl = rLink; } void SetLegacyNoTextAlign( bool bVal ) { mbLegacyNoTextAlign = bVal; } virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE; diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index e0a72bc9c2cb..3dab30bd3e83 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -506,7 +506,7 @@ private: bool m_bResizeTopLevel; VclPtr<DisclosureButton> m_pDisclosureButton; Link<> maExpandedHdl; - DECL_DLLPRIVATE_LINK(ClickHdl, DisclosureButton* pBtn); + DECL_DLLPRIVATE_LINK_TYPED(ClickHdl, CheckBox&, void); }; class VCL_DLLPUBLIC VclScrolledWindow : public VclBin |