diff --git a/include/wx/xrc/xh_propgrid.h b/include/wx/xrc/xh_propgrid.h index d9f0b6a615..d372f6f7fe 100644 --- a/include/wx/xrc/xh_propgrid.h +++ b/include/wx/xrc/xh_propgrid.h @@ -47,9 +47,9 @@ public: void HandlePropertyGridParams(); private: - wxPropertyGridManager* m_manager; - wxPropertyGrid* m_pg; - wxPropertyGridPopulator* m_populator; + wxPropertyGridManager* m_manager = nullptr; + wxPropertyGrid* m_pg = nullptr; + wxPropertyGridPopulator* m_populator = nullptr; }; #endif // wxUSE_XRC && wxUSE_PROPGRID diff --git a/src/xrc/xh_propgrid.cpp b/src/xrc/xh_propgrid.cpp index c190aac779..1ff962c291 100644 --- a/src/xrc/xh_propgrid.cpp +++ b/src/xrc/xh_propgrid.cpp @@ -26,7 +26,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPropertyGridXmlHandler, wxXmlResourceHandler) wxPropertyGridXmlHandler::wxPropertyGridXmlHandler() - :wxXmlResourceHandler(), m_manager(nullptr), m_populator(nullptr) + :wxXmlResourceHandler() { XRC_ADD_STYLE(wxTAB_TRAVERSAL); XRC_ADD_STYLE(wxPG_AUTO_SORT);