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 -5
View File
@@ -50,9 +50,7 @@ namespace display {
class WindowInput : public Window {
public:
WindowInput() :
Window(new Canvas, 0, 0, 1, extent_full, 1),
m_input(NULL),
m_focus(false) {}
Window(new Canvas, 0, 0, 1, extent_full, 1) {}
input::TextInput* input() { return m_input; }
void set_input(input::TextInput* input) { m_input = input; }
@@ -66,10 +64,10 @@ public:
virtual void redraw();
private:
input::TextInput* m_input;
input::TextInput* m_input{};
std::string m_title;
bool m_focus;
bool m_focus{};
};
}