summaryrefslogtreecommitdiffstats
path: root/include/vcl/timer.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-04 17:28:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-05 10:21:54 +0200
commit8cafd08278c0b925aac91ea94d8f907d98f07047 (patch)
tree1c2b0e57c895511fdc67f8063647cc520ef5eaeb /include/vcl/timer.hxx
parentDrop misused lcl_ prefix (diff)
downloadcore-8cafd08278c0b925aac91ea94d8f907d98f07047.tar.gz
core-8cafd08278c0b925aac91ea94d8f907d98f07047.zip
Use typed Timer::SetTimeoutHdl Link
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
Diffstat (limited to 'include/vcl/timer.hxx')
-rw-r--r--include/vcl/timer.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx
index c1779ce04294..458ad4e52bc8 100644
--- a/include/vcl/timer.hxx
+++ b/include/vcl/timer.hxx
@@ -26,7 +26,7 @@
class VCL_DLLPUBLIC Timer : public Scheduler
{
protected:
- Link<> maTimeoutHdl; // Callback Link
+ Link<Timer *, void> maTimeoutHdl; // Callback Link
sal_uInt64 mnTimeout;
bool mbAuto;
@@ -43,8 +43,8 @@ public:
/// Make it possible to associate a callback with this timer handler
/// of course, you can also sub-class and override 'Invoke'
- void SetTimeoutHdl( const Link<>& rLink ) { maTimeoutHdl = rLink; }
- const Link<>& GetTimeoutHdl() const { return maTimeoutHdl; }
+ void SetTimeoutHdl( const Link<Timer *, void>& rLink ) { maTimeoutHdl = rLink; }
+ const Link<Timer *, void>& GetTimeoutHdl() const { return maTimeoutHdl; }
void SetTimeout( sal_uInt64 nTimeoutMs );
sal_uInt64 GetTimeout() const { return mnTimeout; }
virtual void Invoke() SAL_OVERRIDE;