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
+3 -4
View File
@@ -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;