From f0794a4ccd8df2fe136f2f0bef96c6e05c29721a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 30 Aug 2005 00:48:34 +0000 Subject: [PATCH] fix for gcc warning about base class initialization in copy ctors given with -Wall git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/carbon/bitmap.h | 5 ++++- include/wx/mac/carbon/icon.h | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) 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)