diff --git a/include/wx/dataview.h b/include/wx/dataview.h index f185c94c93..7928171e71 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -478,6 +478,7 @@ public: : m_text(text), m_icon(icon) { } wxDataViewIconText( const wxDataViewIconText &other ) + : wxObject() { m_icon = other.m_icon; m_text = other.m_text; } void SetText( const wxString &text ) { m_text = text; } diff --git a/src/msw/palette.cpp b/src/msw/palette.cpp index 570f4d96c8..800db50b2c 100644 --- a/src/msw/palette.cpp +++ b/src/msw/palette.cpp @@ -55,6 +55,7 @@ public: } wxPaletteRefData(const wxPaletteRefData& data) + : wxGDIRefData() { Init();