mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 11:42:33 +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
@@ -54,8 +54,7 @@ public:
|
||||
using Base::size_type;
|
||||
using Base::npos;
|
||||
|
||||
TextInput() : m_pos(0) {}
|
||||
virtual ~TextInput() {}
|
||||
virtual ~TextInput() = default;
|
||||
|
||||
size_type get_pos() { return m_pos; }
|
||||
void set_pos(size_type pos) { m_pos = pos; }
|
||||
@@ -72,7 +71,7 @@ public:
|
||||
Bindings& bindings() { return m_bindings; }
|
||||
|
||||
private:
|
||||
size_type m_pos;
|
||||
size_type m_pos{};
|
||||
|
||||
slot_void m_slot_dirty;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user