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:
@@ -54,14 +54,10 @@ wxBrushRefData::~wxBrushRefData()
|
||||
//
|
||||
wxBrush::wxBrush()
|
||||
{
|
||||
if ( wxTheBrushList )
|
||||
wxTheBrushList->AddBrush(this);
|
||||
} // end of wxBrush::wxBrush
|
||||
|
||||
wxBrush::~wxBrush()
|
||||
{
|
||||
if ( wxTheBrushList )
|
||||
wxTheBrushList->RemoveBrush(this);
|
||||
} // end of wxBrush::~wxBrush
|
||||
|
||||
wxBrush::wxBrush(
|
||||
@@ -77,9 +73,6 @@ wxBrush::wxBrush(
|
||||
memset(&M_BRUSHDATA->m_vBundle, '\0', sizeof(AREABUNDLE));
|
||||
|
||||
RealizeResource();
|
||||
|
||||
if ( wxTheBrushList )
|
||||
wxTheBrushList->AddBrush(this);
|
||||
} // end of wxBrush::wxBrush
|
||||
|
||||
wxBrush::wxBrush(
|
||||
@@ -94,9 +87,6 @@ wxBrush::wxBrush(
|
||||
memset(&M_BRUSHDATA->m_vBundle, '\0', sizeof(AREABUNDLE));
|
||||
|
||||
RealizeResource();
|
||||
|
||||
if ( wxTheBrushList )
|
||||
wxTheBrushList->AddBrush(this);
|
||||
} // end of wxBrush::wxBrush
|
||||
|
||||
bool wxBrush::RealizeResource()
|
||||
|
Reference in New Issue
Block a user