diff --git a/include/wx/propgrid/editors.h b/include/wx/propgrid/editors.h index 9746bbc01a..83e21b8da1 100644 --- a/include/wx/propgrid/editors.h +++ b/include/wx/propgrid/editors.h @@ -27,21 +27,16 @@ class WXDLLIMPEXP_FWD_PROPGRID wxPropertyGrid; class wxPGWindowList { public: - void SetSecondary( wxWindow* secondary ) { m_secondary = secondary; } + wxPGWindowList(wxWindow* primary, wxWindow* secondary = NULL) + : m_primary(primary) + , m_secondary(secondary) + { + } + + void SetSecondary(wxWindow* secondary) { m_secondary = secondary; } wxWindow* m_primary; wxWindow* m_secondary; - - wxPGWindowList( wxWindow* a ) - { - m_primary = a; - m_secondary = NULL; - } - wxPGWindowList( wxWindow* a, wxWindow* b ) - { - m_primary = a; - m_secondary = b; - } }; // ----------------------------------------------------------------------- diff --git a/interface/wx/propgrid/editors.h b/interface/wx/propgrid/editors.h index 25629fd2b4..269a8961bf 100644 --- a/interface/wx/propgrid/editors.h +++ b/interface/wx/propgrid/editors.h @@ -14,13 +14,9 @@ class wxPGWindowList { public: - void SetSecondary( wxWindow* secondary ); + wxPGWindowList(wxWindow* primary, wxWindow* secondary = NULL); - wxWindow* m_primary; - wxWindow* m_secondary; - - wxPGWindowList( wxWindow* a ); - wxPGWindowList( wxWindow* a, wxWindow* b ); + void SetSecondary(wxWindow* secondary); };