X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f7b34a878bbcb2f71a0c7694e2a3bec51460218..1c405bb51093fc7812fb66e7d47faac5707e02b5:/src/mgl/brush.cpp diff --git a/src/mgl/brush.cpp b/src/mgl/brush.cpp index 173c3b2b3c..6bddd63b3b 100644 --- a/src/mgl/brush.cpp +++ b/src/mgl/brush.cpp @@ -121,18 +121,11 @@ wxBrushRefData::wxBrushRefData(const wxBrushRefData& data) IMPLEMENT_DYNAMIC_CLASS(wxBrush,wxGDIObject) -wxBrush::wxBrush() -{ - if (wxTheBrushList) wxTheBrushList->AddBrush(this); -} - wxBrush::wxBrush(const wxColour &colour, int style) { m_refData = new wxBrushRefData(); M_BRUSHDATA->m_style = style; M_BRUSHDATA->m_colour = colour; - - if (wxTheBrushList) wxTheBrushList->AddBrush(this); } wxBrush::wxBrush(const wxBitmap &stippleBitmap) @@ -152,20 +145,11 @@ wxBrush::wxBrush(const wxBitmap &stippleBitmap) M_BRUSHDATA->m_style = wxSTIPPLE_MASK_OPAQUE; else M_BRUSHDATA->m_style = wxSTIPPLE; - - if (wxTheBrushList) wxTheBrushList->AddBrush(this); } wxBrush::wxBrush(const wxBrush &brush) { Ref(brush); - - if (wxTheBrushList) wxTheBrushList->AddBrush(this); -} - -wxBrush::~wxBrush() -{ - if (wxTheBrushList) wxTheBrushList->RemoveBrush(this); } wxBrush& wxBrush::operator = (const wxBrush& brush)