diff --git a/src/Conn.h b/src/Conn.h index 881c3920f2..8d1b5b974b 100644 --- a/src/Conn.h +++ b/src/Conn.h @@ -401,7 +401,7 @@ public: void Dispatch(double t, bool is_expire) override; protected: - ConnectionTimer() {} + ConnectionTimer() = default; void Init(Connection* conn, timer_func timer, bool do_expire); diff --git a/src/Timer.h b/src/Timer.h index 02be6f379d..6acb8f7dd0 100644 --- a/src/Timer.h +++ b/src/Timer.h @@ -65,8 +65,8 @@ public: void Describe(ODesc* d) const; protected: - Timer() {} - TimerType type; + Timer() = default; + TimerType type{}; }; class TimerMgr : public iosource::IOSource {