diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-06 10:17:36 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-06 12:54:22 +0200 |
commit | 1e64fe1364dc4aed8d46671e5b7160244b77db76 (patch) | |
tree | f742584211fee60328fe25f7ea5056c660ae851b /include/vcl/toolbox.hxx | |
parent | 1a5f1e82a96b5c8c9d523fd58c330498936cd2fe (diff) |
Use typed ToolBox::SetCommandHdl Link
Change-Id: Ieee142ddebb288037647fb77bac6f11b9827c4a8
Diffstat (limited to 'include/vcl/toolbox.hxx')
-rw-r--r-- | include/vcl/toolbox.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx index d2a09ced76aa..cbf6342dc7d2 100644 --- a/include/vcl/toolbox.hxx +++ b/include/vcl/toolbox.hxx @@ -190,7 +190,7 @@ private: Link<ToolBox *, void> maActivateHdl; Link<ToolBox *, void> maDeactivateHdl; Link<ToolBox *, void> maSelectHdl; - Link<> maCommandHandler; + Link<CommandEvent const *, void> maCommandHandler; Link<> maStateChangedHandler; Link<> maDataChangedHandler; @@ -504,8 +504,7 @@ public: void SetDeactivateHdl( const Link<ToolBox *, void>& rLink ) { maDeactivateHdl = rLink; } void SetSelectHdl( const Link<ToolBox *, void>& rLink ) { maSelectHdl = rLink; } const Link<ToolBox *, void>& GetSelectHdl() const { return maSelectHdl; } - void SetCommandHdl( const Link<>& aLink ) { maCommandHandler = aLink; } - const Link<>& GetCommandHdl() const { return maCommandHandler; } + void SetCommandHdl( const Link<CommandEvent const *, void>& aLink ) { maCommandHandler = aLink; } void SetStateChangedHdl( const Link<>& aLink ) { maStateChangedHandler = aLink; } const Link<>& GetStateChangedHdl() const { return maStateChangedHandler; } void SetDataChangedHdl( const Link<>& aLink ) { maDataChangedHandler = aLink; } |