--- nono/wx/wxsoftkey.h 2026/04/29 17:04:39 1.1.1.3 +++ nono/wx/wxsoftkey.h 2026/04/29 17:04:43 1.1.1.4 @@ -91,7 +91,7 @@ class WXSoftKeyPanel : public WXTextPane std::array hit {}; // 左クリック押下時のキー - const keydata_t *leftdown_key = NULL; + const keydata_t *leftdown_key {}; // 修飾キーの状態 (刻印を変更するため) enum { @@ -100,23 +100,23 @@ class WXSoftKeyPanel : public WXTextPane } modifier {}; // フォントサイズに相対的な描画単位 - int unit = 0; + int unit {}; // コントロールのサイズ [基準単位] - int u_width = 0; - int u_height = 0; + int u_width {}; + int u_height {}; // コントロールのサイズ [px] - int view_width = 0; - int view_height = 0; + int view_width {}; + int view_height {}; std::unique_ptr bmpbuf {}; std::unique_ptr image {}; std::unique_ptr bitmap {}; // エンター記号の周囲の点集合 - std::vector enter_points; - wxRegion enter_region; + std::vector enter_points {}; + wxRegion enter_region {}; // 色 ColorPalette color {}; @@ -183,7 +183,7 @@ class WXLunaSoftKeyWindow : public WXSub private: // キーボードパネル - WXLunaSoftKeyPanel *panel = NULL; + WXLunaSoftKeyPanel *panel {}; }; // X68k ソフトウェアキーボード (ウィンドウ) @@ -196,5 +196,5 @@ class WXX68kSoftKeyWindow : public WXSub private: // キーボードパネル - WXX68kSoftKeyPanel *panel = NULL; + WXX68kSoftKeyPanel *panel {}; };