From 8186e0b091a4f487448dcfab7144217a85870d4c Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 10 Jul 2014 12:14:27 +0200 Subject: Move the definition of Timer::Timer() into the source file from the header Use initialization list --- src/timer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/timer.cpp') diff --git a/src/timer.cpp b/src/timer.cpp index 1c8de4cb9..4fee71742 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -30,6 +30,13 @@ void Timer::SetInterval(time_t newinterval) ServerInstance->Timers.AddTimer(this); } +Timer::Timer(unsigned int secs_from_now, time_t now, bool repeating) + : trigger(now + secs_from_now) + , secs(secs_from_now) + , repeat(repeating) +{ +} + Timer::~Timer() { ServerInstance->Timers.DelTimer(this); -- cgit v1.3.1-10-gc9f91