diff --git a/src/sled/timer/timer.h b/src/sled/timer/timer.h index 97a437b..1f0f488 100644 --- a/src/sled/timer/timer.h +++ b/src/sled/timer/timer.h @@ -17,16 +17,17 @@ typedef uint32_t TimerGeneration; class Timer; struct TimerThreadDeleter { + TimerThreadDeleter() = default; TimerThreadDeleter(TaskQueueBase *owner); inline void operator()(Timer *timer); private: - TaskQueueBase *owner_; + TaskQueueBase *owner_ = nullptr; }; class Timer { public: - using Ptr= std::unique_ptr; + using Ptr = std::unique_ptr; using OnExpired = std::function()>; Timer(const Timer &) = delete;