From 3928f478f1a05394c8aab47a8d5f38e18cce9669 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 21 Oct 2022 17:15:10 +0100 Subject: Assign more class members inline instead of in the constructor. --- src/timer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/timer.cpp') diff --git a/src/timer.cpp b/src/timer.cpp index c66598f37..8e1d01a56 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -35,8 +35,7 @@ void Timer::SetInterval(unsigned long newinterval) } Timer::Timer(unsigned long secs_from_now, bool repeating) - : trigger(0) - , secs(secs_from_now) + : secs(secs_from_now) , repeat(repeating) { } -- cgit v1.3.1-10-gc9f91