simplify/cleanup wxTheXXXList and wxGDIObject code (patch 1452023 from Paul Cornett)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-04-16 22:33:24 +00:00
parent d0914b9d8d
commit 1de8d512b7
12 changed files with 97 additions and 258 deletions

View File

@@ -60,14 +60,10 @@ wxPenRefData::~wxPenRefData()
//
wxPen::wxPen()
{
if ( wxThePenList )
wxThePenList->AddPen(this);
} // end of wxPen::wxPen
wxPen::~wxPen()
{
if (wxThePenList)
wxThePenList->RemovePen(this);
} // end of wxPen::wxPen
// Should implement Create
@@ -87,9 +83,6 @@ wxPen::wxPen(
M_PENDATA->m_hPen = 0L;
RealizeResource();
if ( wxThePenList )
wxThePenList->AddPen(this);
} // end of wxPen::wxPen
wxPen::wxPen(
@@ -107,9 +100,6 @@ wxPen::wxPen(
M_PENDATA->m_hPen = 0;
RealizeResource();
if ( wxThePenList )
wxThePenList->AddPen(this);
} // end of wxPen::wxPen
int wx2os2PenStyle(