X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8855e47254a28f5141524b3aaaac03c2944e997..687b91d266990129fbbb8c21d92fa4298b458352:/include/wx/mac/classic/bitmap.h diff --git a/include/wx/mac/classic/bitmap.h b/include/wx/mac/classic/bitmap.h index 7380a5486a..b3997a4122 100644 --- a/include/wx/mac/classic/bitmap.h +++ b/include/wx/mac/classic/bitmap.h @@ -46,7 +46,7 @@ public: // Construct a mask from a mono bitmap (copies the bitmap). wxMask(const wxBitmap& bitmap); - ~wxMask(); + virtual ~wxMask(); bool Create(const wxBitmap& bitmap, const wxColour& colour); bool Create(const wxBitmap& bitmap, int paletteIndex); @@ -74,7 +74,7 @@ class WXDLLEXPORT wxBitmapRefData: public wxGDIRefData friend class WXDLLEXPORT wxCursor; public: wxBitmapRefData(); - ~wxBitmapRefData(); + virtual ~wxBitmapRefData(); public: int m_width; @@ -153,7 +153,7 @@ public: // Convert from wxImage: wxBitmap(const wxImage& image, int depth = -1); - ~wxBitmap(); + virtual ~wxBitmap(); wxImage ConvertToImage() const; @@ -168,7 +168,8 @@ public: // copies the contents and mask of the given (colour) icon to the bitmap virtual bool CopyFromIcon(const wxIcon& icon); - bool Ok() const; + bool Ok() const { return IsOk(); } + bool IsOk() const; int GetWidth() const; int GetHeight() const; int GetDepth() const;