fix(ui): initialize m_app pointer to nullptr

This commit is contained in:
2026-07-17 16:56:26 +08:00
parent 5a1f2dd239
commit c5d90fe82e

View File

@@ -47,7 +47,7 @@ private:
static constexpr const char* DEFAULT_TEXT_FIELD_IMAGE = static constexpr const char* DEFAULT_TEXT_FIELD_IMAGE =
"texture/ui/textfield001.png"; "texture/ui/textfield001.png";
App* m_app; App* m_app = nullptr;
std::unique_ptr<Image> m_background; std::unique_ptr<Image> m_background;
std::unique_ptr<Label> m_foreground; std::unique_ptr<Label> m_foreground;
std::unique_ptr<Rect> m_cursor; std::unique_ptr<Rect> m_cursor;