--- nono/wx/wxtextpanel.h 2026/04/29 17:04:39 1.1.1.3 +++ nono/wx/wxtextpanel.h 2026/04/29 17:04:43 1.1.1.4 @@ -98,13 +98,13 @@ class WXTextPanel : public wxPanel static void FreeFont(FontId fontid); // 現在のフォントでのフォントデータ - wxBitmap **ascii_glyph = NULL; - wxBitmap **bold_glyph = NULL; + wxBitmap **ascii_glyph {}; + wxBitmap **bold_glyph {}; // 現在のグリフ - bool glyph_5c = false; - bool glyph_7c = false; - bool glyph_7e = false; + bool glyph_5c {}; + bool glyph_7c {}; + bool glyph_7e {}; static std::mutex global_font_mutex; // 以下の3つを書き換える時は global_font_mutex を取ること @@ -113,7 +113,7 @@ class WXTextPanel : public wxPanel static wxBitmap *bold_glyph_table[FontId::Max][0x83]; // 色 - wxColour text_fgcolor; // 前景色 - wxColour text_bgcolor; // 背景色 - wxColour text_disable_color; // Disable 属性時の前景色 + wxColour text_fgcolor {}; // 前景色 + wxColour text_bgcolor {}; // 背景色 + wxColour text_disable_color {}; // Disable 属性時の前景色 };