clang-tidy: use default member init

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2025-05-29 17:06:35 -07:00
committed by Jari Sundell
parent 3ab38583b8
commit 897a6face2
67 changed files with 119 additions and 211 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ class CommandSchedulerItem {
public:
typedef std::function<void ()> slot_void;
CommandSchedulerItem(const std::string& key) : m_key(key), m_interval(0) {}
CommandSchedulerItem(const std::string& key) : m_key(key) {}
~CommandSchedulerItem();
bool is_queued() const { return m_task.is_scheduled(); }
@@ -40,7 +40,7 @@ private:
std::string m_key;
torrent::Object m_command;
uint32_t m_interval;
uint32_t m_interval{};
std::chrono::microseconds m_time_scheduled;
torrent::utils::SchedulerEntry m_task;