mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 20:52:30 +00:00
clang-tidy: use default member init
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Jari Sundell
parent
3ab38583b8
commit
897a6face2
@@ -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;
|
||||
|
||||
@@ -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{};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user