X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..e8566d35384f83d88ac5f14b6209136377535c14:/src/mac/carbon/brush.cpp diff --git a/src/mac/carbon/brush.cpp b/src/mac/carbon/brush.cpp index 7ba6dfc990..f9e14bad6b 100644 --- a/src/mac/carbon/brush.cpp +++ b/src/mac/carbon/brush.cpp @@ -17,7 +17,9 @@ #include "wx/utils.h" #include "wx/brush.h" +#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxBrush, wxGDIObject) +#endif wxBrushRefData::wxBrushRefData() { @@ -38,14 +40,10 @@ wxBrushRefData::~wxBrushRefData() // Brushes wxBrush::wxBrush() { - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } wxBrush::~wxBrush() { - if ( wxTheBrushList ) - wxTheBrushList->RemoveBrush(this); } wxBrush::wxBrush(const wxColour& col, int Style) @@ -56,9 +54,6 @@ wxBrush::wxBrush(const wxColour& col, int Style) M_BRUSHDATA->m_style = Style; RealizeResource(); - - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } wxBrush::wxBrush(const wxBitmap& stipple) @@ -69,9 +64,6 @@ wxBrush::wxBrush(const wxBitmap& stipple) M_BRUSHDATA->m_stipple = stipple; RealizeResource(); - - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } void wxBrush::Unshare()