diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-17 11:33:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-17 12:41:38 +0200 |
commit | a50cd18768289c65debeed5ec507cf37095365b8 (patch) | |
tree | 1a057021e9a49791e8e2b6b03fc7f4a47dc43281 /include/vcl/ctrl.hxx | |
parent | 81908b38536be0764955fe73f200417b7955a91b (diff) |
make Control::ImplCallEventListenersAndHandler take a lambda
so that we make the Link<> calls type-safe, without having to make this
a template method
Change-Id: I2e36bd6aa7c63440f72d266b593e101965b5ebce
Diffstat (limited to 'include/vcl/ctrl.hxx')
-rw-r--r-- | include/vcl/ctrl.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/vcl/ctrl.hxx b/include/vcl/ctrl.hxx index 0f689d04ebe6..115d9dd87ea5 100644 --- a/include/vcl/ctrl.hxx +++ b/include/vcl/ctrl.hxx @@ -69,15 +69,13 @@ protected: @param nEvent the event to notify to our event listeners - @param rHandler - the handler to call - @param pCaller - the parameter to pass to the handler call + @param callHandler + the lambda function that calls the handler @return if the Control instance has been destroyed in any of the call */ bool ImplCallEventListenersAndHandler( - sal_uLong nEvent, const Link<>& rHandler, void* pCaller + sal_uLong nEvent, std::function<void()> callHandler ); /** draws the given text onto the given device |