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
+1 -3
View File
@@ -15,8 +15,6 @@ public:
static constexpr int flag_capture = 0x4;
static constexpr int flag_background = 0x8;
ExecFile() : m_log_fd(-1) {}
int log_fd() const { return m_log_fd; }
void set_log_fd(int fd) { m_log_fd = fd; }
@@ -24,7 +22,7 @@ public:
torrent::Object execute_object(const torrent::Object& rawArgs, int flags);
private:
int m_log_fd;
int m_log_fd{-1};
std::string m_capture;
};