diff --git a/include/wx/mac/carbon/bitmap.h b/include/wx/mac/carbon/bitmap.h index c051d22fdb..ff0c31c02c 100644 --- a/include/wx/mac/carbon/bitmap.h +++ b/include/wx/mac/carbon/bitmap.h @@ -110,7 +110,10 @@ public: // Copy constructors wxBitmap(const wxBitmap& bitmap) - { Ref(bitmap); } + : wxBitmapBase() + { + Ref(bitmap); + } // Initialize with raw data. wxBitmap(const char bits[], int width, int height, int depth = 1); diff --git a/include/wx/mac/carbon/icon.h b/include/wx/mac/carbon/icon.h index cc90942c70..f070bc224c 100644 --- a/include/wx/mac/carbon/icon.h +++ b/include/wx/mac/carbon/icon.h @@ -26,7 +26,10 @@ public: // Copy constructors wxIcon(const wxIcon& icon) - { Ref(icon); } + : wxGDIObject() + { + Ref(icon); + } wxIcon(const char **data); wxIcon(char **data); @@ -62,7 +65,7 @@ public: void SetHeight(int h); void SetDepth(int d); void SetOk(bool isOk); - + WXHICON GetHICON() const ; DECLARE_DYNAMIC_CLASS(wxIcon)