X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b014ec713bbadb49460e4b23310fd325cdc0036..e6c1d9afeeda63eb9f0c9d612bef439d96a76098:/src/mac/pen.cpp?ds=sidebyside diff --git a/src/mac/pen.cpp b/src/mac/pen.cpp index 356fedcd6c..bb60cfae65 100644 --- a/src/mac/pen.cpp +++ b/src/mac/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()