X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b014ec713bbadb49460e4b23310fd325cdc0036..0e7fa78358f89bdfd0f4b78099543b4beb2faaf6:/src/mac/carbon/pen.cpp diff --git a/src/mac/carbon/pen.cpp b/src/mac/carbon/pen.cpp index 356fedcd6c..bb60cfae65 100644 --- a/src/mac/carbon/pen.cpp +++ b/src/mac/carbon/pen.cpp @@ -32,6 +32,7 @@ wxPenRefData::wxPenRefData() } wxPenRefData::wxPenRefData(const wxPenRefData& data) + : wxGDIRefData() { m_style = data.m_style; m_width = data.m_width; @@ -50,14 +51,10 @@ wxPenRefData::~wxPenRefData() wxPen::wxPen() { - if ( wxThePenList ) - wxThePenList->AddPen(this); } wxPen::~wxPen() { - if (wxThePenList) - wxThePenList->RemovePen(this); } // Should implement Create @@ -74,9 +71,6 @@ wxPen::wxPen(const wxColour& col, int Width, int Style) M_PENDATA->m_dash = 0 ; RealizeResource(); - - if ( wxThePenList ) - wxThePenList->AddPen(this); } wxPen::wxPen(const wxBitmap& stipple, int Width) @@ -92,9 +86,6 @@ wxPen::wxPen(const wxBitmap& stipple, int Width) M_PENDATA->m_dash = 0 ; RealizeResource(); - - if ( wxThePenList ) - wxThePenList->AddPen(this); } void wxPen::Unshare()