fixed gcc warnings about not calling base class ctor explicitly in copy ctors (patch 1028986)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-09-16 22:36:12 +00:00
parent e1ff932979
commit 4dddb8a2dd
10 changed files with 11 additions and 11 deletions

View File

@@ -27,7 +27,7 @@ public:
wxAcceleratorTable();
// copy ctor
wxAcceleratorTable(const wxAcceleratorTable& accel) { Ref(accel); }
wxAcceleratorTable(const wxAcceleratorTable& accel) : wxObject(accel) { Ref(accel); }
// load from .rc resource (Windows specific)
wxAcceleratorTable(const wxString& resource);

View File

@@ -46,7 +46,7 @@ public:
wxBitmap() { Init(); }
// Copy constructors
wxBitmap(const wxBitmap& bitmap) { Init(); Ref(bitmap); }
wxBitmap(const wxBitmap& bitmap) : wxGDIImage(bitmap) { Init(); Ref(bitmap); }
// Initialize with raw data
wxBitmap(const char bits[], int width, int height, int depth = 1);

View File

@@ -32,7 +32,7 @@ public:
wxBrush();
wxBrush(const wxColour& col, int style = wxSOLID);
wxBrush(const wxBitmap& stipple);
wxBrush(const wxBrush& brush) { Ref(brush); }
wxBrush(const wxBrush& brush) : wxGDIObject(brush) { Ref(brush); }
virtual ~wxBrush();
virtual void SetColour(const wxColour& col);

View File

@@ -26,7 +26,7 @@ class WXDLLEXPORT wxCursor : public wxGDIImage
public:
// constructors
wxCursor();
wxCursor(const wxCursor& cursor) { Ref(cursor); }
wxCursor(const wxCursor& cursor) : wxGDIImage(cursor) { Ref(cursor); }
wxCursor(const wxImage& image);
wxCursor(const char bits[], int width, int height,
int hotSpotX = -1, int hotSpotY = -1,

View File

@@ -25,7 +25,7 @@ class WXDLLEXPORT wxFont : public wxFontBase
public:
// ctors and such
wxFont() { Init(); }
wxFont(const wxFont& font) { Init(); Ref(font); }
wxFont(const wxFont& font) : wxFontBase(font) { Init(); Ref(font); }
wxFont(int size,
int family,

View File

@@ -44,7 +44,7 @@ public:
m_handle = 0;
}
wxGDIImageRefData(const wxGDIImageRefData& data)
wxGDIImageRefData(const wxGDIImageRefData& data) : wxGDIRefData(data)
{
m_width = data.m_width;
m_height = data.m_height;

View File

@@ -49,7 +49,7 @@ public:
wxIcon() { }
// copy
wxIcon(const wxIcon& icon) { Ref(icon); }
wxIcon(const wxIcon& icon) : wxGDIImage(icon) { Ref(icon); }
// from raw data
wxIcon(const char bits[], int width, int height);

View File

@@ -38,7 +38,7 @@ class WXDLLEXPORT wxPalette: public wxGDIObject
public:
wxPalette(void);
inline wxPalette(const wxPalette& palette) { Ref(palette); }
inline wxPalette(const wxPalette& palette) : wxGDIObject(palette) { Ref(palette); }
wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
~wxPalette(void);

View File

@@ -81,7 +81,7 @@ public:
wxPen();
wxPen(const wxColour& col, int width = 1, int style = wxSOLID);
wxPen(const wxBitmap& stipple, int width);
wxPen(const wxPen& pen) { Ref(pen); }
wxPen(const wxPen& pen) : wxGDIObject(pen) { Ref(pen); }
virtual ~wxPen();
wxPen& operator=(const wxPen& pen)

View File

@@ -61,7 +61,7 @@ public:
virtual ~wxRegion();
// Copying
wxRegion(const wxRegion& r)
wxRegion(const wxRegion& r) : wxGDIObject(r)
{ Ref(r); }
wxRegion& operator = (const wxRegion& r)
{ Ref(r); return (*this); }
@@ -152,7 +152,7 @@ class WXDLLEXPORT wxRegionIterator : public wxObject
public:
wxRegionIterator() { Init(); }
wxRegionIterator(const wxRegion& region);
wxRegionIterator(const wxRegionIterator& ri) { Init(); *this = ri; }
wxRegionIterator(const wxRegionIterator& ri) : wxObject(ri) { Init(); *this = ri; }
wxRegionIterator& operator=(const wxRegionIterator& ri);