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 -1
View File
@@ -80,7 +80,7 @@ public:
static const int update_sort = 0x1;
static const int update_hide_dot = 0x2;
Directory() {}
Directory() = default;
Directory(const std::string& path) : m_path(path) {}
bool is_valid() const;
+1 -3
View File
@@ -52,8 +52,6 @@ class Lockfile {
public:
typedef std::pair<std::string, pid_t> process_type;
Lockfile() : m_locked(false) {}
bool is_locked() const { return m_locked; }
bool is_stale();
@@ -70,7 +68,7 @@ public:
private:
std::string m_path;
bool m_locked;
bool m_locked{};
};
}