mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 07:02: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
@@ -50,8 +50,7 @@ class ElementBase {
|
||||
public:
|
||||
typedef std::function<void ()> slot_type;
|
||||
|
||||
ElementBase() : m_frame(NULL), m_focus(false) {}
|
||||
virtual ~ElementBase() {}
|
||||
virtual ~ElementBase() = default;
|
||||
|
||||
bool is_active() const { return m_frame != NULL; }
|
||||
|
||||
@@ -65,8 +64,8 @@ public:
|
||||
void mark_dirty();
|
||||
|
||||
protected:
|
||||
display::Frame* m_frame;
|
||||
bool m_focus;
|
||||
display::Frame* m_frame{};
|
||||
bool m_focus{};
|
||||
|
||||
input::Bindings m_bindings;
|
||||
slot_type m_slot_exit;
|
||||
|
||||
Reference in New Issue
Block a user